[Twisted-Python] IPushProducer - medium volume streaming

Christopher Armstrong radix at twistedmatrix.com
Fri Oct 26 19:19:02 EDT 2007

On 10/26/07, Rutt, Benjamin <Benjamin.Rutt at gs.com> wrote:
> 1) forking off a thread so that I will not block other clients from talking
> to the server.

If this is a SQL database with which you're using a dbapi module, you
should probably be using twisted.enterprise.adbapi to make access to
that database asynchronous. Under the hood it's using threads to make
the interface asynchronous. Otherwise, if the only programmatic
interface this database of yours has is blocking, then you'll probably
need to use a thread yourself. See

Christopher Armstrong
International Man of Twistery

More information about the Twisted-Python mailing list