redis / ioredis

🚀 A robust, performance-focused, and full-featured Redis client for Node.js.
MIT License
14.07k stars 1.19k forks source link

Is there ever a need for multiple Cluster instances? #1845

Open hulkish opened 6 months ago

hulkish commented 6 months ago

Hello, I am reviewing some code at new job involving usage of new require('ioredis').Cluster() - and am noticing that previous author has created several instances of this in the same application runtime.. but per my knowledge there should only ever be a need for a single instance... correct?

luin commented 6 months ago

A single instance should be enough in a typical web application.