You can connect to Redis in a blocking loop on a background thread, and deferToThread
is one way to do that in Twisted, but only half of the story: the other half is using callFromThread
to call into Autobahn's publish/dispatch running on the main thread.
You can read more here: http://twistedmatrix.com/documents/13.2.0/core/howto/threading.html