Quick revision
The short answer
I would give each critical service a simple capacity model: the business driver of its load (such as orders per minute), the resources it needs per unit of that load, and the dependency that limits it. Business forecasts for campaigns, launches and seasonal peaks get translated through those models into expected service and database load, reviewed quarterly with service owners and the infrastructure group with a focus on shared databases and brokers. Before known events, critical paths must pass load tests at the forecast peak plus headroom, and headroom is tracked alongside cost so teams do not buy safety with unlimited over-provisioning.
What to remember
In this answer, we saw how to move capacity planning from reactive and per-team to a shared process. Each critical service keeps a simple model of its load driver, resources per unit of load and bottleneck dependency; business forecasts are turned into expected load through those models; quarterly reviews focus on shared databases and brokers; critical paths are load tested at the forecast peak plus headroom before known events; and headroom is tracked together with cost to avoid over-provisioning.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
I would give each critical service a simple capacity model: the business driver of its load (such as orders per minute), the resources it needs per unit of that load, and the dependency that limits it. Business forecasts for campaigns, launches and seasonal peaks get translated through those models into expected service and database load, reviewed quarterly with service owners and the infrastructure group with a focus on shared databases and brokers. Before known events, critical paths must pass load tests at the forecast peak plus headroom, and headroom is tracked alongside cost so teams do not buy safety with unlimited over-provisioning.
Why this question is asked
Reactive capacity planning means finding out about limits during an incident: the database runs out of connections on Black Friday, or a broker fills its disks after a product launch. When each team plans alone, nobody owns the shared pieces, and every team assumes the database will cope. Interviewers ask this to see whether a senior leader can introduce a lightweight process that connects business plans to technical capacity without drowning teams in paperwork. In this answer, we will build a simple capacity model per service, connect it to business forecasts, set up a regular review, require load tests before known events, and balance headroom with cost.
1Why Per-Team, Reactive Planning Fails
Two problems hide in reactive, per-team planning. The first is timing: limits are discovered at the worst moment, at peak, when every fix is rushed. The second is shared resources. Ten services may each plan for their own growth and each assume the shared PostgreSQL cluster or Kafka cluster has room. Individually, each plan looks fine; together, they need twice what the cluster has. Nobody sees the total because nobody is looking across teams.
So the process has two jobs: make each team's planning cheap and consistent, and add one place where the totals for shared infrastructure are visible.
2A Simple Capacity Model per Service
A capacity model sounds heavy, but for most services it fits in a few lines. It names the load driver, the business quantity the load grows with, such as orders per minute, active users or messages ingested. It records resources per unit of load, measured from production: for example, 100 orders per minute need 2 CPU cores, 3 GB of memory across the pods, 8 database connections and 40 database transactions per second. And it names the bottleneck dependency, the resource that saturates first, found by load testing.
| Input | Example | Result |
|---|---|---|
| Forecast | Spring campaign: 2.5x order peak | Peak 750 orders/min |
| Checkout model | 2 cores, 8 connections per 100/min | 15 cores, 60 connections |
| Bottleneck | orders-db saturates near 900/min | 83 percent of limit: tight |
| Decision | Headroom target is 30 percent | Optimise queries or scale DB first |
Notice that this turns a forecast into resources with simple multiplication: 900 orders per minute means 18 cores, 72 connections and 360 database transactions per second, and it also warns that 900 is where the database tops out. Keeping the file in the repository means it is reviewed and updated like code.
3Translating Business Forecasts
The process needs a regular input from the business: planned campaigns, product launches, new markets, partner integrations and seasonal peaks, with rough sizes. I would agree with product and marketing leaders on a simple calendar of known events, updated monthly, with an estimate of each event's effect on the load drivers, for example a campaign expected to double orders for two days.
Service owners then run their models against those events, and the platform group adds up the results for shared resources: the orders database, the Kafka cluster, the cache cluster. This roll-up is the part no single team can do, and it is where most surprises are found.
4Quarterly Capacity Reviews
Once a quarter, service owners of critical services and the infrastructure group meet for a capacity review. The agenda is short: the forecast for the next two quarters, the roll-up for each shared database and broker with its current headroom, the services whose models are out of date or whose last load test is old, and the actions with owners, such as a database upgrade that needs a long lead time. Focusing on shared infrastructure keeps the meeting useful; individual services can scale themselves, but shared clusters need planning months ahead.
Between reviews, alerts on headroom, such as database CPU at peak above 60 percent for a week, trigger an early look.
5Load Tests Before Known Events
Models are estimates, and they drift as code changes. So for known events, the critical paths, such as checkout and payment, must pass a load test at the forecast peak plus headroom, for example 1.3 times the forecast, a few weeks before the event. The test confirms the model, finds the next bottleneck while there is still time to fix it, and gives the business confidence. Results feed back into the capacity models, so each event improves the next forecast.
6Balancing Headroom With Cost
Without a counterweight, capacity planning turns into over-provisioning: every team adds a large buffer, and the cloud bill grows for capacity that is never used. So I would track headroom and cost together. Each service reports its peak utilisation and its cost, and the review looks at both: a service running at 15 percent of its capacity at peak is paying for safety it does not need, while one at 85 percent is at risk.
I would set a target range for peak headroom, for example 30 to 50 percent for critical services, and use autoscaling and scheduled scaling for known events so the extra capacity exists only when needed. That way, the process makes the organisation both safer and cheaper.
7Follow-up questions
How do you get teams to keep their capacity models current?
By making them cheap and useful. The model is a short file in the repository, many values come from dashboards automatically, and it is required only for critical services. The review flags models older than two quarters or without a recent load test, and teams see the benefit when the model helps them get budget for a database upgrade before it is urgent.
What do you do with services whose load is hard to forecast?
We plan them with wider headroom, rely more on autoscaling, and protect them with rate limits and graceful degradation. For shared dependencies, we watch utilisation trends and set alerts that trigger an early review when growth is faster than expected.
Who owns capacity for shared databases and brokers?
The infrastructure or platform group owns their capacity, but service teams own their demand. The capacity process connects the two: services report forecast demand through their models, and the platform group plans the shared cluster from the total, with clear lead times for changes such as adding broker nodes or upgrading a database.
8Conclusion
In this answer, we saw how to move capacity planning from reactive and per-team to a shared process. Each critical service keeps a simple model of its load driver, resources per unit of load and bottleneck dependency; business forecasts are turned into expected load through those models; quarterly reviews focus on shared databases and brokers; critical paths are load tested at the forecast peak plus headroom before known events; and headroom is tracked together with cost to avoid over-provisioning.
Open with
I would introduce a lightweight process with one simple building block: a capacity model for each critical service. It names the load driver, like orders per minute, the resources per unit of load measured from production, such as cores, memory, database connections and transactions per 100 orders, and the dependency that saturates first, found by load testing.
Then, if they want more
It lives as a short file in the service's repository. Then I would connect it to the business: product and marketing keep a calendar of campaigns, launches and seasonal peaks with rough sizes, and teams run their models against it.
The platform group adds up the results for shared infrastructure like the orders database and the Kafka cluster, because that is where per-team planning fails: each team assumes the shared cluster has room. Every quarter, service owners and the infrastructure group review the forecast, headroom on shared databases and brokers, stale models and long-lead actions like database upgrades.
Before known events, critical paths must pass a load test at forecast peak plus about 30 percent. And I would track headroom and cost together, with a target range for peak utilisation, so teams do not buy safety with unlimited over-provisioning, and use scheduled scaling for events so we only pay for extra capacity when we need it.
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 documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- Kubernetes documentation, Spring Boot reference
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 in your organisation is reactive and done per team. How would you...": https://scrivio-interview-library.netlify.app/spring-boot/production-operations/4d38754862/