Availability: restoring a primary for externalized state
How Multi-AZ failover and transactional-log durability determine whether externalized application state remains accessible and recoverable after failures. · advanced
Externalizing application state makes its failure behavior depend on the state store. For ElastiCache, distinguish availability—restoring access through a working primary—from durability—preserving data for recovery. Replica promotion answers the first question; it is not, by itself, a statement about which writes survive.
Multi-AZ distributes replicas across Availability Zones and enables automatic failover. It requires at least one replica in an Availability Zone different from the primary. When the primary fails, ElastiCache promotes the replica with the least replication lag.
ElastiCache then updates DNS for the promoted replica. Applications writing through the primary endpoint do not need to change their configured endpoint. This preserves the application's endpoint choice; it is not a promise that requests remain uninterrupted throughout failover.