Interview › Databases & Caching
What is Redis Sentinel, and what does it provide?
Databases & Caching · Advanced level
Answer
Redis Sentinel monitors a primary-replica deployment, detects primary failure, elects a new primary, and provides discovery. It gives failover but not sharding.
Technical explanation
Sentinel monitors Redis primary and replicas and decides failover through quorum.
It promotes a replica and tells Sentinel-aware clients where the new primary is.
It does not shard data; it is an HA mechanism for a non-clustered dataset.
Hands-on example
Sentinel failover flow:
1. Sentinels detect primary down.
2. Quorum agrees.
3. A leader selects a replica.
4. Replica is promoted.
5. Other replicas follow it.
6. Clients reconnect through Sentinel discovery.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Databases & Caching interview questions
- What is Redis replication, and how does a replica stay in sync?
- What is Redis Cluster, and how does sharding with hash slots work?
- What is the difference between Redis Sentinel and Redis Cluster?
- What is the difference between Redis persistence options RDB and AOF?
- How does ElastiCache provide high availability and automatic failover?
- What is a cache hit ratio, and how do you improve it?
- Why are some Redis commands (KEYS, FLUSHALL) dangerous in production?
- What is the difference between Redis as a cache and Redis as a primary datastore?