|
|
|
|
|
by pramodliv1
3772 days ago
|
|
I'm running Python + Django with uWSGI. Building the app is a pleasure. With type hints in Python 3.5, the code becomes almost as maintainable as statically typed languages too. 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? |
|
Then I'd suggest you use Cython for a speed up or try using PyPy which can be 200% faster without any changes.
When I used Python and worked with financial data, every live algorithm would be recoded as a Cython extension.