News for hackers. Stuff that matters.
Re:Tornado as your server: WSGI container lands in Tornado by PhilChristensen on Tuesday September 15, 2009 @11:07AM (#823948)
okay, i give up.

explain to me how it's possible to run any significant WSGI app inside this container. wouldn't any long-running request monopolize the whole server?

i don't have a lot of exposure to other WSGI apps besides my own, but I always use synchronous, blocking development techniques when building them, including blocking database calls.

Re:Tornado as your server: WSGI container lands in Tornado by kingkilr on Tuesday September 15, 2009 @11:42AM (#824041)
That's correct. This is why most WSGI people (such as Graham Dumpleton, author of mod_wsgi) are opposed to adding any sort of async stuff to the WSGI spec as well.
Re:Tornado as your server: WSGI container lands in Tornado by dlsspy on Tuesday September 15, 2009 @12:40PM (#824158)
twisted does it by using deferToThread (so the call sits in a thread pool and the reactor doesn't block).

I suppose they just need their twisted loop clone thing to implement deferToThread now.