3 ms·
A couple of years ago there was an article comparing the various wsgi servers. The one that seemed most performant/low memory at the time was gevent, so I chos
by mixmastamyk 13y ago
A couple of years ago there was an article comparing the various wsgi servers. The one that seemed most performant/low memory at the time was gevent, so I chose it for the application I was writing at the time to run on an ec2 micro behind nginx. It was very easy to use too, just wrote a 10 line python script and that was it.
I've never seen any articles about it since, so I wonder if others know something I don't. Can anyone compare gevent's webserver vs. uwsgi, gunicorn, etc behind nginx?
- zeeg 13y agogevent is a very simple webserver that wont handle many things that the "real" servers do. One of the main things I'm talking about in this post is load balancing, which gevent (and uwsgi, and gunicorn, etc) don't implement very well. Nginx does a pretty good job at this, in addition to many other things (like buffering). You can definitely get a lot of performance out of a coroutine, async, etc framework, but at the end of the day it's not going to be the entry point to a production application.
- zhemao 13y agoI think OP was asking what the performance of gevent server running behind nginx was compared to uwsgi or gunicorn running behind nginx.
- mixmastamyk 13y agoYes I do run it behind nginx. While performance is important, I wonder about the other aspects as well.
- akent 13y agoThe author of gevent Denis Bilenko himself says, in a nutshell, don't use gevent directly in production, use gunicorn. http://stackoverflow.com/questions/7855343/run-web-app-with-gevent/7857201#7857201 http://stackoverflow.com/questions/7855343/run-web-app-with-...