Redis high availability replication (डेटाचे replica प्रती), Redis Sentinel (automatic failover monitoring), आणि 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
