Can Tornado communicate with Cassandra, in Non-blocking asynchronous style?
-
20-09-2019 - |
Question
I'm working on a web project, which have to process so many client requests. So I am considering to use Cassandra and tornado. Tornado seems to have a build-in client(tornado.httpclient.AsyncHTTPClient), which can do http Non-Blocking request. But, Cassandra uses Thrift protocol. Using Thrift, Tornado seems to be blocked while quering to Cassandra.
Has anyone got expereince? Please suggest how should I do. Or, is there any add-on module for this purpose?
Thanks.
Solution
There is a Twisted Cassandra client at http://github.com/driftx/Telephus. I imagine you'd need to write something like that for Tornado. (Switching to Twisted might be easier. :)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow