Skip to content
IT glossary
ArchitectureUpdated December 3, 2026

Capacity planning

Оценка нагрузки

This is the process of deciding how much computing, storage, and network capacity a system needs to handle expected demand while staying fast and reliable.

Also known as: back-of-the-envelope

What capacity planning answers

Suppose a product launch will bring five times the usual traffic. Should you run more application instances, upgrade the database, or do neither? The answer depends on what users do, which components perform the work, and how much traffic those components can handle before requests slow down or fail.

A back-of-the-envelope estimate is a quick way to get the scale right: are you looking at hundreds of requests per second or tens of thousands? Capacity planning goes further. It checks the estimate against measurements and turns it into a decision about what to provision, when to scale, and what reserve to keep.

From demand to resource needs

  • Describe the workload. Start with production metrics or explicit assumptions about active users and actions per user. Express traffic in requests per second (RPS), and distinguish daily averages from peaks. Record how long peaks last and whether the mix of reads and writes changes.
  • Follow the work through the system. One API request may produce several database queries, while a cache hit might avoid those queries entirely. Multiply response rate by typical response size to estimate outbound bandwidth. For storage, estimate data written per day and how long it is retained, then account for overhead such as indexes and replicas.
  • Measure usable capacity. Run a representative load test and find the rate you can sustain while meeting both latency and error targets. For example, a p95 latency target of 200 ms means at least 95% of measured requests should finish within 200 ms. A benchmark that reports only maximum throughput won't show whether users get timely, successful responses.

Worked example: sizing an API fleet

An API handles 8.64 million requests in a day. Dividing by 86,400 seconds gives an average of 100 RPS. Production metrics show a peak of 500 RPS. Under a realistic request mix, one application instance sustains 150 RPS within the latency and error targets.

Round 500 / 150 up to get four instances, assuming even load balancing and no shared bottleneck. If the API must also tolerate losing one instance during a peak, start with five: the four survivors have a combined tested-rate estimate of 600 RPS. Verify that setup with a fleet-level load test. A single-instance benchmark doesn't tell you whether the shared database can keep up when five instances all query it at once.

Using the estimate in production

Teams revisit capacity before launches, after changes in traffic patterns, and when choosing autoscaling limits. Don't size for the daily average if traffic arrives in short bursts: the burst may be over before additional instances are ready. And don't assume that adding application instances will fix a bottleneck in a shared database or an upstream service with a fixed quota. Watch the resources and dependencies that are closest to their limits, not just the fleet size.

In system design interviews

An interviewer might give you a daily active user count and ask for peak traffic or total storage. State how many actions each user takes and how those actions translate into requests or bytes. If the peak is unknown, give a plausible range and say what measurement would narrow it. The arithmetic matters less than what it tells you to do next: size the API fleet, test the write path, or check a network limit.