Redis & Caching (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)
High Availability with Redis Sentinel.
senior LevelSystem Design
In Simple Words: Redis Sentinel is a distributed monitoring and failover system for Master-Replica topologies:
- Monitoring: Sentinels continuously ping Master and Replica nodes.
- Quorum Election: If Master is unreachable, Sentinels agree via quorum (
ODOWN), promote a Replica to Master, and notify clients via Pub/Sub to connect to the new Master.