2
votes

We are using node_redis (npm redis module) on node js to connect with AWS elasticache. We are now planning to use cluster mode and seeing failures when using node_redis. It is not handling MOVE commands.

Do we have to do anything specific for node_redis to work with cluster mode? or is that not supported and we have to use ioredis?

1

1 Answers

2
votes

It's provided through a separate module called redis-clustr endorsed by redis. But it's usage is not that high. Here is the official word from redis labs Source,

Node.js has two primary clients available node_redis and ioredis. Both are available through npm. Both clients have pros and cons, but we generally suggest node_redis, as it has wide support for Redis modules, it is easily extensible and widely used. Ioredis has better integrated support for the Redis Enterprise Cluster API, but this is only relevant if your specifically using the Cluster API topology instead of the more common Proxy topology. Node_redis’ support for the Cluster API is provided by an additional shim, redis-clustr. Node_redis has built-in support for Redis Enterprise features such as Active Active geo distribution, allowing you to have one database that spans multiple clusters. Node_redis also supports Redis-on-Flash which enables extending your database into Flash SSD storage for warm values and DRAM for hot values.