The mental model

A high-availability deployment, a read replica, and a cache solve different problems. RDS Multi-AZ options have architecture-specific failover and read-serving behavior. Read replicas can offload suitable reads but may lag behind writes. Always check the selected engine and deployment type rather than assuming every secondary instance behaves the same way.

A cache such as ElastiCache stores reusable results with an explicit freshness and invalidation strategy. It should not silently become the only copy of durable business data. Model cache misses, stale entries, expiry bursts, and failure. The database must survive an expected miss rate, or a cache outage can overload the dependency it was meant to protect.

Decisions to make

  1. Choose failover and recovery settings independently from read-scaling requirements.
  2. Define cache keys, expiration, invalidation, and fallback behavior before adding a cache.

Design exercise · no AWS resources needed

Work through a scenario

A product price changes, but users still see the previous price.

  1. Trace reads through the cache and the underlying database.
  2. Identify the invalidation or freshness rule that permits the stale result.
  3. Specify what happens if the cache becomes unavailable.

Check your understanding

What does a cache need in addition to a storage endpoint?

Continue with AWS documentation

Before following a deployment guide, review current pricing, permissions, and cleanup steps. Budget alerts are not a hard spending cap.

Saved in this browser. Press again to undo.

Prepaid · USD

Top up balance

Available balance: $0.00

Your balance works across Heap tools. A failed lookup or generation releases its reserved amount.