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.
http://pypi.python.org/pypi/greenlet
Basically, it's Stackless in CPython as a module import.
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
--
Mike Orr <slugg...@gmail.com>
[1] http://nichol.as/asynchronous-servers-in-python
[2] http://gevent.org/
On 13 ene, 20:36, "jgard...@jonathangardner.net"