Scrivio Interview library
LeadershipPrincipal6 min read · updated 12 November 2026

Capacity planning at your company is done by adding servers before each peak season, and costs grow faster than traffic. As the senior technical leader, how do you change capacity planning into a disciplined process?

I would replace 'add servers before peak' with a capacity model for each critical service: what drives its load, how much of each resource one unit of load costs, and which dependency limits it, validated by load tests. Business forecasts from finance and product are translated into expected load, capacity is planned with explicit headroom, load tests at forecast peak find bottlenecks to fix instead of buying servers, efficiency such as cost per order is tracked over time, and every peak ends with a review of forecast against reality that improves the model.

Why this question is asked

When capacity planning means adding servers before each peak, cost grows faster than traffic for a simple reason: nobody knows how much capacity each unit of business really needs, so every team adds a generous safety margin on top of last year's margin. Interviewers ask this leadership question to see whether we can turn a habit into an engineering process with data, owners and feedback. In this answer, we will look at why the current approach inflates cost, build a capacity model, connect it to business forecasts, use load tests to fix bottlenecks, track efficiency and close the loop after each peak.

1Why Adding Servers Makes Cost Grow Faster Than Traffic

Without a model, each team plans by fear. It remembers last year's incident, takes last year's capacity, adds 50 percent and asks for more just in case. The extra servers stay after the peak because nobody is sure they can be removed. Meanwhile the real bottleneck is often not the servers at all but a database, a third-party API or a lock, so the extra servers do not even buy safety.

The result is that cost per order rises every year even though the code has not become more expensive to run. Changing that needs three things: a model that says how much capacity a unit of business needs, a process that uses it, and feedback that improves it.

2Build a Capacity Model per Critical Service

A capacity model is a small, written description of a service with three parts. The load drivers are the business events that create work, for example orders placed and product pages viewed. The resource cost per unit says how much CPU, memory, database time and downstream calls one unit consumes, for example one order costs 40 ms of CPU, 6 database queries and 1 payment call. The bottleneck is the resource that runs out first as load grows.

We fill the model from production metrics and validate it with load tests, because a model that has never been tested against reality is just a better-looking guess.

Capacity model for the order service (simplified)
PartValueSource
Load driverorders per secondbusiness events
CPU per order40 msproduction metrics
One pod handlesabout 35 orders/s at 70% CPUload test
DB cost per order6 queries, 9 ms DB timepg_stat_statements
Bottleneckorders DB at about 900 orders/sramp load test
Headroom targetpods at 60% at forecast peakagreed policy

3Turn Business Forecasts Into Expected Load

Engineering cannot forecast the business alone. We work with finance and product to get forecasts in business terms, such as 2.4 million orders in the peak week and a peak hour that carries 4 percent of the week's orders, plus planned campaigns. The model turns that into load: 2.4 million times 4 percent is 96,000 orders in the peak hour, about 27 per second on average, and with a minute-level peak factor of 3, about 80 per second.

With the model, one pod handles about 30 orders per second at our 60 percent headroom target, so 80 orders per second needs 3 pods, and 4 so that we survive losing one zone, and the database bottleneck at 900 per second is far away. Headroom is now an explicit number we chose, not a hidden margin each team adds. That alone often removes a large part of the overspending.

Java
peak_week_orders = 2_400_000
peak_hour_share = 0.04 # from last year's data
peak_minute_factor = 3 # minute peak vs hour average
orders_per_s = 2_400_000 * 0.04 / 3600 * 3 # 80
pods = ceil(80 / (35 * 0.60 / 0.70)) # 35/s at 70% -> 30/s at 60% -> 3 pods; add 1 for a zone failure = 4

4Use Load Tests to Fix Bottlenecks Instead of Buying Servers

The model tells us what we need; load tests at forecast peak tell us whether the system can deliver it. We run them weeks before the peak, not days, so there is time to fix what they find. When a test shows that the orders database saturates at 60 orders per second because of a missing index or a chatty query, the right answer is to fix the query, which costs a day, rather than to buy a larger database, which costs money every month.

This is the main shift in culture: a bottleneck found in a load test is a defect to fix, and buying capacity is the decision we make when fixing is more expensive.

5Track Efficiency Over Time

To see whether the process is working, we track efficiency metrics in business units: infrastructure cost per thousand orders, CPU seconds per order, cost per request for key APIs. These numbers should stay flat or fall as we grow. If cost per order rises 20 percent in a year while the product has not changed, something is wasteful and we look for it.

Efficiency metrics also give leadership a way to compare years and to see the value of performance work: a query fix that cut CPU per order by 15 percent shows up directly as money.

6Review Each Peak and Improve the Model

After every peak, we compare the forecast with reality: forecast orders against actual, predicted CPU against actual, where the bottleneck really was, what we over-provisioned and what nearly failed. The differences feed back into the model, for example a peak minute factor of 4 rather than 3, or a cache hit rate lower than assumed.

Over two or three cycles, the model becomes trusted, the margins shrink to the agreed headroom, and capacity can be released after the peak with confidence because we know what normal traffic needs.

Step throughThe capacity planning cycle
  1. Business forecastfinance and product
  2. Capacity modeldrivers, cost per unit, bottleneck
  3. Plan with explicit headroom
  4. Load test at forecast peakfix bottlenecks first
  5. Peak runstrack cost per order
  6. Review forecast vs actualupdate the model, release capacity

6 steps in order. Play them, or step through them one at a time.

7Follow-up questions

How much headroom is enough?

It depends on how fast we can add capacity and how bad running out would be. A common target is to stay under 60 to 70 percent of the bottleneck resource at forecast peak, plus enough to survive losing one availability zone. Services that autoscale quickly can run with less fixed headroom than those that need hours to scale, such as databases.

Does autoscaling make capacity planning unnecessary?

No. Autoscaling handles stateless pods well, but it cannot scale a database primary, a third-party rate limit or a cloud account quota on demand, and it needs to know its upper limits. Capacity planning finds those limits and makes sure autoscaling has room to work.

Who owns the capacity model?

Each critical service's team owns its model, because they understand the service. A small central group owns the method, the templates, the link to business forecasts and the yearly review, so the models are consistent and comparable.

8Conclusion

In this answer, we turned capacity planning from adding servers into a disciplined cycle. Each critical service has a capacity model of load drivers, cost per unit and bottleneck, validated by load tests; business forecasts are translated into load and planned with explicit headroom; load tests at forecast peak find bottlenecks to fix rather than buy around; efficiency metrics such as cost per order show whether we are improving; and each peak ends with a review that improves the model.

What to say in the interviewAbout 80 seconds aloud

Open with

The reason cost grows faster than traffic is that every team plans by fear, adding margin on top of last year's margin, often in front of a bottleneck that servers do not fix.

Then, if they want more

I would replace that with a capacity model for each critical service: the business events that drive load, the cost of one unit in CPU, database time and downstream calls, and the bottleneck that runs out first, filled from production metrics and validated by a ramp load test.

Then I would work with finance and product to turn their forecasts into load, for example peak week orders times the peak hour share times a minute peak factor, and plan pods with an explicit headroom target, say 60 percent at peak plus a zone failure.

Weeks before the peak, we load test at the forecast and treat bottlenecks as defects to fix, because fixing a query is cheaper than a bigger database every month. I would track cost per thousand orders and CPU per order over time so leadership can see efficiency.

And after every peak we compare forecast with reality, update the model and release what we do not need. After two or three cycles the margins shrink to what we chose on purpose.

About this answer

Last updated
12 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "Capacity planning at your company is done by adding servers before each peak season, and...": https://scrivio-interview-library.netlify.app/spring-boot/service-performance/ea579ed062/