How it works
An estimate earns its keep when it settles a decision. Suppose a web instance sustains 300 requests per second in a representative load test. A 1,200-request-per-second peak needs four instances only if all four run at their limit. With a target of at most 70% utilization, the share of capacity in use, each contributes about 210 requests per second: 1,200 ÷ 210 ≈ 5.7, so the first estimate is six healthy instances.
Now add failure. If one of six dies, the other five each carry 240 requests per second, which is 80% utilization: above target, though still below the tested limit. A seventh instance, often called N+1 capacity, keeps the fleet at target during a failure. Whether that is worth paying for depends on how the service behaves at 80%, which only a test shows.
Then change one assumption at a time: daily activity, peak multiplier, object size, or retention. Doubling the peak to 2,400 requests per second moves the count from 6 to 12 instances, more of the same, with no redesign. Changing posts from text to video changes storage, upload paths, and processing. If doubling one input changes the component choice, that input deserves measurement.
Round estimates enough to compare options, then replace guesses with traffic data, load tests using tools such as k6 or Locust, and a clear capacity trigger. A load test takes time and misleads if its data or traffic mix is unrealistic. If a wrong guess is cheap to reverse, as with adding a web instance, skip the analysis and watch the metrics.
A proposed design works only if peak traffic is less than twice the average, but nobody has measured peaks. What should the team do?
Treat the multiplier as a high-impact uncertainty. Measure comparable traffic or load-test several peak scenarios, then choose capacity and a trigger for adding more. Do not present the twofold assumption as a fact.
Use this as a guide for self review; written answers are not graded.Keep in mind
- Headroom and failure targets change the required instance count.
- An estimate is useful when it guides a choice and identifies what to measure next.