1

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.

Dinusha
  • 696
  • 1
  • 14
  • 27

3 Answers3

2

I found a redis driver. It seem working good.

https://www.npmjs.com/package/ioredis

Dinusha
  • 696
  • 1
  • 14
  • 27
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
  • 1
    Worked 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