3 ms·
That issue (accessing databases without blocking) is why I've recently started getting interested in DBSlayer from the NYTimes: http://dbslayer.org/projects/db
by simonw 17y ago
That issue (accessing databases without blocking) is why I've recently started getting interested in DBSlayer from the NYTimes:
http://dbslayer.org/projects/dbslayer http://dbslayer.org/projects/dbslayer
It's a proxy that lets you make SQL queries against your database over HTTP. Since all of the event based web frameworks (Twisted, gevent, Tornado etc) allow you to make non-blocking HTTP requests, using DBSlayer could instantly resolve the blocking database query problem.
To my knowledge no one has written a Django ORM backend for DBSlayer yet, but it would be a fun hacking project.