New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Python Web Server
Hi, I would like to start developing a small python web application but I have no idea what web server to use for a production environment. I know that most python web frameworks come with a web server but I really don't think any of those are good for production. I would greatly appreciate it if you could help me with this.
Comments
nginx
well, nginx is first on my list I just want to know if there are any better alternatives
https://www.djangoproject.com/
Used in production by many.
nginx with gunicorn, uwsgi or flup behind it
really need more information to make a better recommendation, which server gateway interface does your web application implement? WSGI is the most common.
Pure python, flask, perhaps?
nginx + uwsgi = win
i was thinking of using the web.py framework
gunicorn looks good. does anyone else have any experience with it?
i researched this a little and this seems to be true according to... well all comparisons between gunicorn and wsgi. thx for the recommendation
@vladorz you can't go wrong with either gunicorn or uwsgi - both widely deployed and have a lot of documentation. just make sure you are serving static content directly from nginx rather than via the WSGI gateway (if you find docs/tutorials almost all of them will explain this point first)
nginx + uwgsi
mod_python and Apache.
A little old, but here are some benchmarks: http://nichol.as/benchmark-of-python-web-servers