|
|
|
|
|
by afandian
3772 days ago
|
|
Ditto. I used it for something that I would have written in C (and had prior). A glorious language. Gives safety to places where pointer arithmetic and function pointers adds danger while keeping structs and arrays of primitives. Plus great libraries and memory management. And then I thought "why not use it for something web-like". My experience was dreadful. After coming from Python+Django, it felt like writing Java 1.4 (not a good thing). Especially for returning JSON objects with lots of mixed types. So I switched to Clojure and never looked back (Python would have been an equally valid choice). Go's a great language, but it's being applied in some very odd (and potentially unsuitable) places. |
|
One problem I have is that the application is extremely CPU intensive. I can't get past 35-40 requests per second with 500 concurrent users (at 4 CPU cores, 14 GB RAM), which seemed too expensive economically. (I cached as much data as possible, both at the Nginx tier and with Redis) and tuned the number of uWSGI worker processes.
Do I have to try other languages or do you think I have more room for optimization with Python?