Design Cache Warmup for a Region Absorbing Failover Traffic
Last updated: November 29, 2026
Quick Overview
Design how Meta prepares a data center region's caches to absorb traffic drained from a failed or evacuated region, so the receiving region does not collapse under cold-cache misses hitting its databases.
Meta
November 29, 20260
0
0 solved
Design how Meta prepares a data center region's caches to absorb traffic drained from a failed or evacuated region, so the receiving region does not collapse under cold-cache misses hitting its databases.
Meta regularly drains whole regions for maintenance and disaster drills, and a sudden shift of traffic onto cold caches is a classic cause of cascading failure. The interviewer checks capacity reasoning about hit rates, gradual traffic shifting, cache warming strategies, and protecting databases during the transition.
What the Interviewer Expects
- Quantify how a hit-rate drop multiplies database load
- Shift traffic gradually with health-based gates
- Warm caches proactively from hot-key sets or a sibling cluster
- Protect databases with admission limits during warmup
- Rehearse with regular drills and automation
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- What if the failover is unplanned and there is no time to warm?
- Which keys are worth warming, and how do you get that list?
- How do you avoid warming traffic itself overloading the databases?
- How do you decide a region has enough headroom to accept more?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Scenario: region A serves 20% of global traffic and must be drained (planned maintenance or an outage). Its users move to regions B and C, each gaining 10 percentage points. Those users' hot data ...
High-Level Design
Pieces: a traffic control service that sets per-region weights at the edge load balancers; cache clusters per region with a warmup mode; a hot-key exporter that continuously samples th...