Live Capacity Planning Scenario
An interviewer asks you to size a new service from scratch. Walk through demand forecasting, headroom calculation, and autoscaling design.
Overview
Calculate first, design second
Capacity planning interviews test whether you can translate a vague business requirement into concrete infrastructure decisions. The NALSD framework (Non-Abstract Large System Design) from Google's SRE writing gives the right sequence: calculate first, design second. In practice that sequence has six steps.
- Demand: turn daily active users (DAU) into peak requests per second (RPS).
- Profile: measure what one request costs.
- Compute: convert that cost into cores, plus headroom.
- Redundancy: add spare capacity, typically N+2, so losing machines does not drop peak traffic.
- Storage and cache: size the data that piles up and the cache in front of it.
- Assumptions: state every assumption the numbers rest on.
> [!IMPORTANT] A DAU number is useless until you turn it into a request pattern. Start with demand decomposition, not instance counts.
Interview questions
- An interviewer says: "We expect 10 million daily active users on a new social feed service. Size the service." Walk through your approach.
- The interviewer follows up: "Traffic grows 3x in 6 months due to a viral feature. How do you handle it without rewriting the service?"
Sign up free to read the full topic
More SRE topics
Start free on Cariara · Coding problems · System design studio