I was wondering if anyone has used uwsgi with nginx to serve a high-load django site before. If so, did they have any problems?
Nginx – Has anyone used uwsgi nginx and django for a high-load environment
djangonginxpythonuwsgi
Related Topic
- Nginx – Serving django with nginx and uWSGI
- Nginx – Django (uWSGI) and php (fastcgi) NGINX
- Nginx – need nginx when I have uWSGI
- Nginx – uwsgi + Django with nginx: High Availability Setup
- Nginx – why django project failed deploying? – django + nginx + uwsgi
- Nginx – 504 Gateway Time-out uwsgi + nginx django application
- Nginx – django uwsgi and nginx = 400 bad request
- Nginx – Docker how to Django + uwsgi/gunicorn + nginx
Best Answer
We did some tests and it seems that uwsgi just answers with one concurrent request per process. This is because uwsgi DOESN'T fork off another process or thread. If make your application fully asynchronous (you have to use "yield" as often as possible), you could use uwsgi async feature. This should make your app a lot more scalable. As of trunk of uwsgi, threading is now supported with a max number of threads.