Cache replication and failover
medium 28 minReplication keeps copies of a cache on other servers.
Where it shows up
The same pattern appears across everyday software.
Redis Sentinel
Separate watcher processes monitor a primary, agree on failures, promote a replica and tell clients the new address.
Redis Cluster
Each primary owns some slots and has replicas. The other primaries vote when one is lost.
Netflix EVCache
Built on Memcached, it writes to more than one zone and reads from the local one, so a zone can be lost.
Facebook's mcrouter
The proxy supports replicated pools and health checks with failover for Memcached, which has no replication of its own.
Login sessions
Sites keep sessions in a replicated cache, so a lost server does not sign everyone out.
Read-heavy pages
News and shop pages read from replicas, and only the editors' own views read from the primary.