Async IO Server with Blocking DB

Steve Howell showell30 at yahoo.com
Wed Apr 4 01:41:36 EDT 2012


On Apr 3, 3:13 pm, looking for <lookingforsmart... at gmail.com> wrote:
> Hi
>
> We are thinking about building a webservice server and considering
> python event-driven servers i.e. Gevent/Tornado/ Twisted or some
> combination thereof etc.
>
> We are having doubts about the db io part. Even with connection
> pooling and cache, there is a strong chance that server will block on
> db. Blocking for even few ms is bad.
>
> can someone suggest some solutions or is async-io is not at the prime-
> time yet.
>

Can you farm off DB requests to another process, so that you're at
least not blocking the main process?




More information about the Python-list mailing list