A cache with a 95% hit rate quietly shields the database from 19 of every 20 reads. Capacity plans built on that number are also plans for what happens the moment it stops being true.
Set a workload, decide whether the cache is healthy, and predict where database demand lands before seeing the numbers.
When the cache disappears.
A cache reduces database reads. What happens to that protection when it goes offline? Set the workload, predict the result, then explore.
Applies while the cache is healthy. An unavailable cache serves no hits.
Example database capacity 3,000 reads/s
The application checks the cache and handles database reads on a miss or fallback.
Make a prediction to reveal the database load.
Model assumptions and source
- Each request is a read. Each cache miss or fallback causes one database read request. The result shows demand, not completed reads.
- The hit rate is a steady-state average. An unavailable cache serves zero hits.
- The 3,000 reads/s limit is chosen for this exercise. It is not a measured database capacity or latency prediction.
- Writes, retries, request coalescing, queues, cache warmup, and the cost of individual queries are outside this model.
Amazon describes how cache outages can surge traffic to dependencies and why fallback needs safeguards. Read Caching challenges and strategies (opens in a new tab)↗
This lab goes with a lesson: Cache repeated work