asyncio-redis icon indicating copy to clipboard operation
asyncio-redis copied to clipboard

Redis Cluster Support

Open firla opened this issue 10 years ago • 2 comments

Hi, do you plan to support Redis Cluster in the near future?

firla avatar Feb 25 '15 13:02 firla

Hi @firla, currently I'm not planning to add any special cluster support. Maybe it can be implemented on top of asyncio-redis instead of inside it. (I'm not sure.) Pull requests or implementation ideas are always welcome.

jonathanslenders avatar Feb 26 '15 08:02 jonathanslenders

Hi @firla, @jonathanslenders,

I forked asyncio-redis and, based on redis-py-cluster, I've added support for Redis Cluster using the asyncio lib. It's very hacky but it suits my needs. You can check it here: https://github.com/HackerExperience/asyncio-redis-cluster

I think it's possible to add cluster support to asyncio-redis without much pain (you can check my diff, it's not very big), but I don't know if we want that. Redis Cluster comes with some limitation (like no pipeline, limited subset of commands, etc), and there would be a (small) overhead for both packages (checking if the setup is clustered, if there are slaves, etc). Also, a proper implementation (like redis-py-cluster) seems a lot of work.

renatomassaro avatar Mar 31 '15 21:03 renatomassaro