Redis giver høj tilgængelighed gennem replikering (replica-kopier af data), Redis Sentinel (automatisk failover-overvågning) og Redis Cluster (sharding + replikering). Forståelse af disse er vigtig for at køre Redis pålideligt i produktion.
Replikering — primær og 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
