I am going to use redis sentinel cluster as a session store in my Node js (express) web application. Could you please list the best npm module for do this.
Asked
Active
Viewed 2,296 times
1
-
I'm voting to close this question as off-topic because it's old and poor (like me) – Strawberry Mar 27 '16 at 23:08
3 Answers
1
For sentinel Check out redis-sentinel https://www.npmjs.com/package/redis-sentinel, also please read this link to get a good understanding about it http://engineering.docusign.com/articles/redis-sentinel-client-nodejs/

Sudhanshu Gaur
- 7,486
- 9
- 47
- 94
-
I can confirm the package in that blog post doesn't work. Do not use it. I got a failover to a slave and no event was emitted. I ended with a read only slave and my application started crashing. – arboreal84 Jun 15 '16 at 23:13
-
well thanks for telling me that, well right now which package are you using ?? – Sudhanshu Gaur Jun 16 '16 at 13:35
-
just use redis cluster instead of redis sentinel and use the project endorsed by the redis project in their website. – arboreal84 Jun 28 '16 at 23:32
-
1Worked for me. I made the master go to sleep until a failover occurred and continued to receive events from a subscribed channel – Tom Aug 14 '17 at 07:02
-2
https://www.npmjs.com/package/redis is a good start. It's got 4800 stars on github as well

Kaanon MacFarlane
- 110
- 1
- 4