Q4: How do you estimate capacity during system design?
Start with users and activity assumptions. For example, 10 million daily active users making 20 requests each produce 200 million requests/day, or about 2,315 requests/second on average. Apply a peak factor—perhaps 3–5x—to estimate peak QPS. Estimate storage as writes per day × average record size × retention, then account for indexes, replicas, and growth. State assumptions and revise them when requirements change.
Key Takeaways
- Show assumptions and arithmetic rather than pretending estimates are exact.
- Estimate peak traffic, storage, bandwidth, and growth.