How to configure nginx and uWSGI to serve Django projects
21–24 of 24 posts
Re: How to configure nginx and uWSGI to serve Django projects
#22nginx, Varnish, and uWSGI are oh so awesome together. My app (I run a Pyramid based application) is lightning fast, and very easy to configure (much easier than mod_wsgi).
Why nginx AND varnish? I thought varnish could proxy as well? Or maybe could you explain your setup.
Depending on how you choose to implement it, this may also result in cleaner architecture if you have Varnish as a simple HTTP brick with little knowledge of the backend implementation, leaving all of the gory details to nginx.
Re: How to configure nginx and uWSGI to serve Django projects
#23nginx, Varnish, and uWSGI are oh so awesome together. My app (I run a Pyramid based application) is lightning fast, and very easy to configure (much easier than mod_wsgi).
Why nginx AND varnish? I thought varnish could proxy as well? Or maybe could you explain your setup.
Re: How to configure nginx and uWSGI to serve Django projects
#24Earlier quoted context omitted.
Well i think the gist is that serving files and running applications have different resource requirements. Therefore it is common to have a proxy serve statics and proxy in addition to an application server running python. The advantage with uwsgi as i understand it is that the proxy protocol is faster than http.
No, uWSGI has nothing to do with performance. Its strength is in the features and operational modes. Each application is diferent from the others and (could) requires specific tuning. This is the spirit of the project, that is at the opposite of solutions like gunicorn. There is no "best choice", it depends on how you approach to system administration/development. Saying uWSGI is better than gunicorn (or the opposite…