I don't know, and if anybody does know, they haven't said. But a Pylons request would run inside a tread / greenlet / process / async-thing. So you can make a HTTP server that spawns worker greenlets instead of threads. Maybe PasteHTTPServer can be subclassed for this. Then, if you get it working, you can make an entry point so it can be loaded from the INI file.
There may possibly be issues with StackedObjectProxy (the Pylons special globals) and SQLAlchemy's scoped_session, but Ben or Ian or Mike Bayer could answer that better than I can. --Mike On Wed, Jan 13, 2010 at 12:36 PM, jgard...@jonathangardner.net <jgard...@jonathangardner.net> wrote: > What about Python greenlets to handle concurrency? > > http://pypi.python.org/pypi/greenlet > > Basically, it's Stackless in CPython as a module import. > > On Dec 16 2009, 4:10 pm, Joan Miller <pelok...@gmail.com> wrote: >> I've to starting to play with Go to manage the concurrency and it's >> awesome. >> >> On 16 dic, 23:51, Damjan <gdam...@gmail.com> wrote: >> >> > > One other issue is that the thread overhead is not usually the >> > > bottleneck in a WSGI application. Database access has a much bigger >> > > impact on performance. If you need to handle thousands of >> > > simultaneous requests, you probably need multiple servers anyway. >> >> > depends, >> > if you need to handle thousands of requests that are at the same time >> > pretty idle (see Comet for ex), the memory that threads consume is a >> > big issue. >> >> > An event based framework solves this by saving as litle state as >> > needed (or possible) so that it could handle a large number of >> > otherwise slow or idle connections. >> >> > Python in general is not so well suited for all of this. I've been >> > playing with Erlang latelly and this kind of stuff is impresivelly >> > easier there. -- Mike Orr <sluggos...@gmail.com>
-- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-de...@googlegroups.com. To unsubscribe from this group, send email to pylons-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-devel?hl=en.