Redis biedt hoge beschikbaarheid door replicatie (replica-kopieën van de gegevens), Redis Sentinel (automatische failover-monitoring) en Redis Cluster (sharding + replicatie). Het begrijpen van deze concepten is belangrijk voor het betrouwbaar uitvoeren van Redis in productie.
Replicatie — primaire en replica's
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
