News for hackers. Stuff that matters.
Re:Async I/O for Python 3 by RyanGWU82 on Monday March 18, 2013 @05:56PM (#5397430)
My company used gevent in production at very large scale, and we were extremely happy with it. In fact, we ported our existing Django and Flask applications to run under gevent, which was a surprisingly fast process. (Weeks, not months, to port rather large codebases.) We did have to be careful with third-party libraries, like Zookeeper clients, but that was worth the tradeoff. We got the performance of an evented structure without having to rewrite a ton of code.
Re:Async I/O for Python 3 by antihero on Monday March 18, 2013 @09:08PM (#5398281)
How does one go about porting Django apps to be compatible with gevent? In that you used gevent in your Django code, or that you built something completely different?
Re:Async I/O for Python 3 by pjscott on Tuesday March 19, 2013 @01:38AM (#5399159)
I assume that you use a WSGI server which allocates one greenlet per request (e.g. gevent.wsgi, or Gunicorn's async workers), and make sure that the rest of your code isn't going to block the event loop too much. Once that's done, you can have a whole bunch of HTTP requests being handled at once. That's nice if your server spends most of its time blocking on database requests or something.