Redis bietet Hochverfügbarkeit durch Replikation (Replica-Kopien der Daten), Redis Sentinel (automatische Failover-Überwachung) und Redis Cluster (Sharding + Replikation). Das Verständnis dieser Konzepte ist wichtig für den zuverlässigen Betrieb von Redis in der Produktion.
Replikation — Primary und 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
