Re:Multiple Django and Flask Sites with Nginx and uWSGI Emperor
by forsaken on Wednesday May 16, 2012 @03:00PM
(#3983483)
The web server doesn't matter. Your app is what will be slow.
[ Parent
| on HN ]
Re:Multiple Django and Flask Sites with Nginx and uWSGI Emperor
by irahul on Thursday May 17, 2012 @05:18AM
(#3986136)
So you can serve a production site using Python's wsgiref and SimpleHTTPServer?
Servers do matter - memory usage, throughput, error rate, concurrent request handling etc. If the options are to use a faster server, or hunt down your code for bottlenecks, the choice is clear. Even if I modify my code to be faster, a faster server doesn't hurt.
This "benchmarks are useless" meme is overdone. "Hello World" benchmarks don't matter, but if a server is significantly faster on my real world application, why would that benchmark be meaningless for me?
Re:Multiple Django and Flask Sites with Nginx and uWSGI Emperor
by ceol on Wednesday May 16, 2012 @03:55PM
(#3983714)
Personally, I would like to know if this setup is available using gunicorn.
Re:Multiple Django and Flask Sites with Nginx and uWSGI Emperor
by chrisguitarguy on Wednesday May 16, 2012 @05:41PM
(#3984176)
It would be very similar, you'd just need supervisord or something similar to run gunicorn for you. There is a pretty complete example of deploying gunicorn + nginx in the docs: http://gunicorn.org/deploy.html