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

Cannot subscribe to Cluster client

Open nirlo opened this issue 2 years ago • 3 comments

I've been looking to use the cluster client, but there seems to be a lot of missing functionality.

The cluster connection only seems to be able to run sever commands and does not have the functionality of the normal redis client.

Although we can individually connect to a node in the cluster, it would be better if the the subscription round robins to the different nodes in the cluster as a part of the library.

nirlo avatar Apr 01 '22 15:04 nirlo

I ended up using ioredis which does support subscribe/psubscribe for clusters.

richardwu avatar Jun 02 '22 01:06 richardwu

Any update on this? I may need to switch to ioredis as well due to the same reason.

almandsky avatar Jun 21 '22 02:06 almandsky

Same thing, "subscribe" method is not available for RedisCluster. At least this could be put as a warning on the docs... so we take it into consideration when we select which library to use...

gmerciel avatar Sep 22 '22 18:09 gmerciel