Quick revision
The short answer
When requests arrive while the server is busy, they wait in a queue, and in a simple single-server queueing model the average response time is the service time divided by (1 - utilisation). With 8 ms of work that is about 20 ms at 60 percent, 80 ms at 90 percent and 160 ms at 95 percent, and the tail grows even faster because arrivals are bursty. Multi-core servers degrade later but still turn sharply near saturation, so we set the utilisation target from the latency objective, typically 50 to 70 percent for latency-sensitive services, and remember that losing one of three zones adds 50 percent load to the others.
What to remember
In this answer, we saw that latency rises sharply near full utilisation because requests queue, and the simple model's response time of service time divided by (1 - utilisation) gives 20 ms at 60 percent, 80 ms at 90 and 160 ms at 95 for 8 ms of work. Bursty arrivals, garbage collection and contention make the tail grow even faster, and multi-core servers move the knee but do not remove it. We set the target from the latency objective by load testing, often 50 to 70 percent, and check it still holds when a zone fails and the others take 50 percent more load.
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.
When requests arrive while the server is busy, they wait in a queue, and in a simple single-server queueing model the average response time is the service time divided by (1 - utilisation). With 8 ms of work that is about 20 ms at 60 percent, 80 ms at 90 percent and 160 ms at 95 percent, and the tail grows even faster because arrivals are bursty. Multi-core servers degrade later but still turn sharply near saturation, so we set the utilisation target from the latency objective, typically 50 to 70 percent for latency-sensitive services, and remember that losing one of three zones adds 50 percent load to the others.
Background to this question
Running servers at 90 percent CPU looks like an easy saving: the same work on fewer machines. Load tests then show latency multiplying, and the team wonders why, since each request still needs only 8 ms of CPU. The answer is queueing, and it is one of the most useful pieces of theory a backend engineer can carry around. In this answer, we will see why waiting time explodes near full utilisation, compute it for this service, look at why real systems behave a bit differently from the simple model, and choose a utilisation target that respects the latency objective and survives a zone failure.
1A Quick Recap: Utilisation and Queues
Utilisation is the fraction of time a server is busy. At 60 percent, it is idle 40 percent of the time. Requests do not arrive evenly spaced; they arrive randomly, sometimes several at once. When a request arrives and the server is busy, it waits in a queue, a line of work in progress, such as a thread pool's task queue or the operating system's run queue.
At low utilisation, an arriving request almost always finds the server free and waits very little. As utilisation rises, the chance of finding it busy rises, and so does the number of requests already waiting. Near 100 percent, the server has almost no idle time to catch up after a burst, so queues grow long and drain slowly.
2The Formula Behind the Curve
The simplest queueing model, one server with random arrivals and random service times (called M/M/1), gives a neat result: the average time in the system is the service time divided by (1 - utilisation). The term 1 / (1 - utilisation) is how much the queue stretches each request.
| Utilisation | Average response | Roughly p99 in this model |
|---|---|---|
| 60 percent | 20 ms | about 90 ms |
| 80 percent | 40 ms | about 185 ms |
| 90 percent | 80 ms | about 370 ms |
| 95 percent | 160 ms | about 740 ms |
Notice the shape. From 50 to 80 percent, response time only goes from 16 to 40 ms. From 80 to 95 percent it quadruples. The curve is gentle for a long time and then turns sharply upwards, which is why 'just 30 more percent' near the top is so expensive.
3Why the Tail Grows Even Faster
The load test showed p99 going from 80 ms to 1.2 seconds, worse than even the model's 370 ms. That is normal. Real arrivals are burstier than the random arrivals the model assumes: retries, batch jobs and client fan-out send requests in clumps. A burst that arrives when the server has almost no spare capacity builds a queue that takes a long time to drain, and everyone behind it waits. The tail, the slowest 1 percent, is made of exactly those unlucky requests.
Other effects also grow with utilisation. A JVM at high CPU has less spare time for garbage collection, so pauses get longer or more frequent. More runnable threads mean more context switching. More concurrent requests mean more contention on locks and connection pools. Each adds service time precisely when the queue is already long.
4Multi-Core Servers Bend Later, but Still Bend
An API server has many cores and a thread pool, which behaves more like several servers sharing one queue. That model, called M/M/c, keeps waiting time low up to a higher utilisation, because a request rarely finds all cores busy. So a 16-core machine at 70 percent behaves much better than a single server at 70 percent would.
But the curve still turns sharply as all cores approach saturation, only the knee moves to the right. That is why the formula is best used for intuition about the shape, while the actual knee for our service is found by measurement.
5Choosing a Utilisation Target
We set the target from the latency objective, not from cost alone. We run a load test that steps up the request rate, record p99 at each step, and find the highest utilisation at which p99 still meets the objective at peak with some margin. For latency-sensitive services that is often 50 to 70 percent. Batch and asynchronous workers, where latency does not matter, can run at 85 to 95 percent happily.
Then we check the failure case. With three availability zones, losing one sends its traffic to the other two, which each get 50 percent more load. A fleet running at 60 percent becomes 90 percent exactly when we most need it to behave, which is already at the knee for this service. A fleet at 90 percent would be pushed past 100 percent and collapse. So the target must leave room for a zone loss: with three zones, normal utilisation around 60 percent is about the highest that survives one zone failing.
- Write the latency objectiveFor example p99 under 150 ms at peak
- Load test in stepsRecord CPU and p99 at each rate
- Find the highest utilisation meeting the objectiveWith some margin
- Still under the knee after losing a zone?Multiply by 1.5 for 3 zonesYesUse this targetNoLower the target or add a zone
- Autoscale on that targetScale out before the knee, not at it
5 steps in order. Play them, or step through them one at a time.
6Follow-up questions
How would you find the knee of the curve for your service?
Run a load test with production-like requests that raises the rate in steps, for example 10 percent of expected peak at a time, holding each step for several minutes. Plot p99 latency and throughput against utilisation. The knee is where p99 starts rising much faster than load, and where throughput stops growing with offered load. Repeat after significant code or instance-type changes, because the knee moves.
Why not autoscale at 90 percent and save money?
Because scaling takes minutes, and at 90 percent the service is already slow and has no room for the burst that triggered the scaling. Autoscaling should start well before the knee.
Does the formula apply to databases too?
Yes, to any shared resource with a queue: database CPU, disk, connection pools and locks. A connection pool at 95 percent use shows the same explosion in wait time.
7Conclusion
In this answer, we saw that latency rises sharply near full utilisation because requests queue, and the simple model's response time of service time divided by (1 - utilisation) gives 20 ms at 60 percent, 80 ms at 90 and 160 ms at 95 for 8 ms of work. Bursty arrivals, garbage collection and contention make the tail grow even faster, and multi-core servers move the knee but do not remove it. We set the target from the latency objective by load testing, often 50 to 70 percent, and check it still holds when a zone fails and the others take 50 percent more load.
Open with
Latency rises because of queueing. Requests arrive randomly, and if one arrives while the server is busy, it waits. In the simplest model, a single server with random arrivals, the average response time is the service time divided by one minus utilisation.
Then, if they want more
With eight milliseconds of work, that is twenty milliseconds at sixty percent, eighty at ninety and a hundred and sixty at ninety-five, so the curve is flat for a long time and then shoots up.
The tail grows even faster, because real traffic is bursty, and near saturation there is no spare capacity to drain a burst, plus GC pauses, context switching and lock contention all get worse. That is why the load test saw p99 go from 80 milliseconds to over a second.
Multi-core servers with thread pools degrade later than the single-server model, but they still have a knee. So I would set the target from the latency objective: load test in steps, find the highest utilisation where p99 still meets the objective at peak with margin, typically fifty to seventy percent for a latency-sensitive API.
And I would check failover: with three zones, losing one adds fifty percent to the others, so sixty percent becomes ninety exactly when we need headroom. Ninety percent normally would simply fall over.
About this answer
- Last updated
- 13 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 "Why does latency rise so sharply as utilisation approaches 100 percent, and what...": https://scrivio-interview-library.netlify.app/architecture/sd-fundamentals/ae9ca0ff95/