Redis high availability ને replication (ડેટાની replica copies) દ્વારા, Redis Sentinel (automatic failover monitoring) દ્વારા, અને Redis Cluster (sharding + replication) દ્વારા પ્રદાન કરે છે. Production માં 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
