Redis provides high availability through replication (replica copies of the data), Redis Sentinel (automatic failover monitoring), and Redis Cluster (sharding + replication). Understanding these is important for running Redis reliably in production.
Replication — primary and replicas
PRIMARY (master) → handles writes; asynchronously replicates data to replicas
REPLICAS (slaves) → copies of the primary's data; can serve READS (read scaling)
Write → Primary → async replication → Replicas (eventually consistent)
✓ Redundancy (replicas have copies) + read scaling (reads offloaded to replicas)
✗ Replication is ASYNC → a small lag; a failover could lose very recent writes
