To deploy Django in an online environment, nginx+uwsgi and nginx+gunicorn, how should you choose between these two options?
ringa_lee
2017-05-16 17:18:27
Deploying Django in an online environment, nginx+uwsgi and nginx+gunicorn, how to choose between these two options?
What deployment method do you use?
The first type, high concurrency and stability
Our company uses nginx+gunicorn, mainly for convenience. Performance can be optimized in other ways.
Whatever
We use nginx supervisor gunicorn
Instagram is converted from uwsgi to gunicorn. It is recommended to use gunicorn. The configuration is simple and convenient.
Recommend nginx supervisor gunicorn
Simple configuration and convenient operation and maintenance.
The nginx+gunicorn method is used. I have never used uwsgi, so I can’t compare it. In terms of gunicorn’s experience, it is already very fast. nginx handles almost all static file requests. In fact, there are already many requests that need to be processed by gunicorn. not enough.
gunicorn can be configured directly using Python files, making it more comfortable to try.