Search code examples
redisload-balancingsession-managementredis-sentinel

Can i just use 2 Redis/Sentinal servers to manage failover on my 2 server setup?


I forgive me for my shallow knowledge, but I have not to figure out why I need 3 servers to manage fail-over with Redis?

I have a application served under load-balancer with to server instances, and I am looking to setup Redis for session & notification management.

My requirement is simple that I want to install Redis on both servers and have a fail-over plan if one server fails so the the end-user do not gets affected in terms of session & notifications.

What are my options ? Thanks in advance.


Solution

  • I ended up using Hazelcast for my scenario as it is able to fail-over if only one instance fails at a time. So simple answer is to use HAZELCAST if you have a restriction of 2 servers only.