Quick revision
The short answer
Usually not fully. At a 98 percent hit ratio the database sees 2 percent of reads, so losing the cache multiplies its read load by fifty, and capacity for that would sit idle almost always. The real question is how the system degrades, so I would make cache loss survivable instead, with replicated multi-zone caches, warm-up with gradual traffic restoration and admission control that sheds load, decide per system by comparing recovery time and business cost per minute with the yearly cost of redundancy, prove it with game days, and treat every load-bearing cache as critical infrastructure.
What to remember
In this answer, we saw that a cache at a 98 percent hit ratio carries 98 percent of the read load, so losing it multiplies database reads by fifty, which full sizing can rarely justify. Instead we make loss rare with replicated, cell-based caches, make it survivable with load shedding, stale serving, warm-up and gradual traffic restoration, decide per system by comparing recovery time and cost per minute with the cost of redundancy, prove the plan with game days, and treat load-bearing caches as critical infrastructure with owners, monitoring and recovery plans.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
Usually not fully. At a 98 percent hit ratio the database sees 2 percent of reads, so losing the cache multiplies its read load by fifty, and capacity for that would sit idle almost always. The real question is how the system degrades, so I would make cache loss survivable instead, with replicated multi-zone caches, warm-up with gradual traffic restoration and admission control that sheds load, decide per system by comparing recovery time and business cost per minute with the yearly cost of redundancy, prove it with game days, and treat every load-bearing cache as critical infrastructure.
Why this question is asked
Caches start as a performance optimisation and quietly become part of the capacity plan. Once the database is sized for the traffic the cache leaves behind, the cache is load-bearing, and its loss is a capacity event, not a slowdown. Interviewers ask senior candidates this to see whether they can turn a scary multiplier into a funded, testable decision. In this answer, we will quantify what the cache carries, see why full sizing is rarely right, look at making cache loss survivable, decide per system with numbers, test it, and set the organisational rules.
1The Cache Carries Load
The multiplier comes straight from the hit ratio. If a fraction h of reads hit the cache, the database sees 1 - h of them; losing the cache sends all reads to the database, a multiplier of 1 / (1 - h). That number grows quickly as the hit ratio improves, which is the uncomfortable part: the better our cache, the more dangerous its loss.
| Hit ratio | Database sees | Read load after loss |
|---|---|---|
| 90 percent | 10 percent of reads | 10 times normal |
| 95 percent | 5 percent of reads | 20 times normal |
| 98 percent | 2 percent of reads | 50 times normal |
| 99 percent | 1 percent of reads | 100 times normal |
No reasonable database absorbs 50 times its normal read load. And the load is not only queries: thousands of new connections, cold buffer caches and lock contention make a cold database slower than its normal capacity figures suggest. So the honest framing is not whether the database survives, but how the whole system behaves and how fast it recovers.
2Why Full Sizing Is Usually the Wrong Answer
Sizing a database for 50 times its normal read load means paying for many replicas or much larger instances that do nothing on every day the cache works, which is nearly every day. For a database costing 200,000 a year, that would be millions a year of idle capacity, to insure against an event measured in minutes per year. It also does not fully work: the database is not the only thing that breaks under a cold start, and connection pools, application threads and downstream services fail too.
There are exceptions. A small system whose database is cheap and whose cache hit ratio is modest, say 80 percent, may be easy to size for full loss. But for most high-traffic systems, the money is better spent on making cache loss rare and survivable.
3Making Cache Loss Survivable
Three investments change the picture. First, make total loss rare: replicate the cache across availability zones with automatic failover, so a node or zone failure is a failover of seconds, not an empty cache, and split large shared clusters into cells, so one failure empties only part of the keyspace. Second, recover in a controlled way: when a cache does come back empty, restore traffic gradually, admitting 10 percent, then 25, then 50, while the cache warms, and pre-load the most popular keys from access logs. Third, protect the database with admission control: concurrency limits and load shedding in front of it, so excess requests fail fast with a clear error instead of pushing the database into collapse, and serve stale data from local caches or the CDN where it is acceptable.
With these in place, a full cache loss becomes a period of degraded service, perhaps some users seeing errors for ten minutes, rather than a total outage of unknown length.
- Cache lostNode, zone or cluster failure, or a bad deploy
- Shed load in front of the databaseConcurrency limits, fast rejections
- Serve stale where allowedLocal caches, CDN stale-if-error
- Warm popular keysTop keys from access logs, controlled rate
- Restore traffic in steps10, 25, 50, 100 percent while watching the database
5 steps in order. Play them, or step through them one at a time.
4Deciding Per System With Numbers
The decision belongs to each system, because the cost of an outage differs enormously. For each load-bearing cache I would ask the team for three numbers: how long recovery takes after a full cache loss today, what users experience meanwhile, and what a minute of that costs the business. Then compare with the yearly cost of the options: cache replicas, admission control work, or extra database capacity.
For example, if losing the checkout cache means 30 minutes of failed checkouts at 20,000 per minute, one incident costs 600,000, and a replicated cache cluster at 60,000 a year is an easy decision. For an internal reporting tool, the same analysis may say that a slow hour once a year is acceptable and nothing should be spent. Putting the numbers side by side is what gets the work funded, because it turns a technical worry into a business trade-off.
5Testing It With Game Days
Recovery plans that have never run do not work. A game day empties a cache deliberately, first in staging with replayed production traffic, later in a single production cell, and measures what actually happens: does load shedding engage, does warm-up run, how long until the hit ratio and latency recover? The first game day usually finds something, such as a missing limit, a warm-up job nobody has run in months, or a dashboard that does not show the right metric. That is the point of running it on a chosen day rather than during an incident.
6Treating Load-Bearing Caches as Critical Infrastructure
Finally, I would set an organisational rule: any cache whose loss would overload its backend is critical infrastructure. It gets an owner, redundancy appropriate to its tier, hit-ratio and eviction monitoring with alerts, and a documented and tested recovery plan, the same as a database. Teams should also know which of their caches are load-bearing; many do not, because the cache was added for latency years ago and the database was later downsized.
7Follow-up questions
Which systems would you test first?
Those where the product of risk and cost is highest: systems with very high hit ratios, because their multiplier is largest; systems whose outage costs money directly, such as checkout or login; and systems whose cache runs as a single cluster without replicas or cells. Among those, I would start with the one whose recovery time nobody can state, because the uncertainty itself is the risk.
Should cache hit ratio be part of capacity planning?
Yes, explicitly. If the database is sized assuming a 95 percent hit ratio, that number is a capacity dependency, and a drop to 90 percent doubles database load. Hit ratio should be monitored with alerts like any other capacity metric, and changes that affect it, such as key format or TTL changes, reviewed as capacity changes.
Is a cold standby cache worth having?
Rarely. An empty standby has the same problem as an empty primary. Replicas that receive data continuously are what make failover fast, because they are warm when they take over.
8Conclusion
In this answer, we saw that a cache at a 98 percent hit ratio carries 98 percent of the read load, so losing it multiplies database reads by fifty, which full sizing can rarely justify. Instead we make loss rare with replicated, cell-based caches, make it survivable with load shedding, stale serving, warm-up and gradual traffic restoration, decide per system by comparing recovery time and cost per minute with the cost of redundancy, prove the plan with game days, and treat load-bearing caches as critical infrastructure with owners, monitoring and recovery plans.
Open with
The first thing is to recognise that the cache carries load. At a 98 percent hit ratio the database sees 2 percent of reads, so losing the cache multiplies its read load by fifty, and no reasonable database absorbs that.
Then, if they want more
Sizing for it would mean paying for capacity that sits idle almost every day, and a cold start breaks connection pools and threads anyway. So for most systems I would not size the database for full cache loss; I would change the question to how the system degrades and recovers.
That means replicated, multi-zone caches with automatic failover and cells, so a total loss is rare; admission control and load shedding in front of the database, so excess requests fail fast instead of collapsing it; serving stale data where acceptable; and a recovery procedure that warms popular keys and restores traffic in steps.
To decide and fund it, I would ask each team for recovery time after a full cache loss, what users see meanwhile and the cost per minute, and compare that with the yearly cost of redundancy or extra capacity. Checkout and an internal report tool will get different answers.
Then I would prove it with game days that empty a cache in staging or one production cell, and treat every load-bearing cache as critical infrastructure with an owner, monitoring and a tested recovery plan.
About this answer
- Last updated
- 13 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "As the senior technical leader, should databases be sized to survive a complete cache...": https://scrivio-interview-library.netlify.app/architecture/caching-strategies/302b5da219/