News for hackers. Stuff that matters.
Re:Gevent: the Good, the Bad, the Ugly by BarkMore on Friday October 29, 2010 @04:30PM (#1848897)
The creators of Tornado recommend writing synchronous code for everything except "long" operations for which you have no control. Examples of these include long polling and requests to third party services. Requests to your local database are not long operations. If these requests are long operations, then you have a latency problem with your application.

The Tornado people recommend running more instances of the application than CPUs to handle the short blocking requests to local databases and what not.

Although it depends on what your app does, my guess is that typical applications written with this philosophy are mostly synchronous code.

Re:Gevent: the Good, the Bad, the Ugly by Vishnevskiy on Friday October 29, 2010 @08:31PM (#1849651)
With eventlet and gevent you can write asynchronous that looks synchronous. Which is the point of greentornado.

That being said we still use synchronous calls to our databases.