Redis high availability ను replication (డేటా యొక్క replica కాపీలు), Redis Sentinel (ఆటోమేటిక్ failover మానిటరింగ్), మరియు Redis Cluster (sharding + replication) ద్వారా అందించುతుంది. ఉత్పాదన వాతావరణంలో Redis నిర్ভరంగా నడపడానికి ఈ విషయాలను అర్థం చేసుకోవడం ముఖ్యమైనది.
Replication — primary మరియు 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
