开发者

Non relational database for twisted

开发者 https://www.devze.com 2023-04-05 17:19 出处:网络
I\'m looking for any k开发者_开发百科ey-value database implementation for working with twisted in asynchronous mode.

I'm looking for any k开发者_开发百科ey-value database implementation for working with twisted in asynchronous mode. The one Idea that I have is using the Twisted Memcache API with MemcacheDB.

Is this some other solution?


One of possible solution is using Redis(REmote DIctionary Server). Redis is very fast, powerful and stable key-value storage which is used in many projects. Stackoverflow also uses redis;).

I've recently start using redis in my current project for creating user's ratings. My personal opinion: redis is very simple, very fast and stable. It also has a pretty command line client, I like it.

On website I use synchronous redis package. Server uses twisted and requires asynchronous approach. Fortunately, there is third-party module txredis, which allows easily to interact with redis database using twisted. I didn't have any problems with it. However, txredis doesn't have a connection pool, but it's not a problem to implement it manually, if needed.


I use Apache Cassandra from twisted, using Telephus if production for years.


Adding one more point to @dr. 's answer marked as accepted : Use the python package txredisapi, which uses redis protocol for twisted with connection pool support and many more.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号