Redis ले high availability प्रदान गर्छ replication (डेटाको replica प्रतिलिपि), 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
