Why a 10% traffic increase can make latency ten times worse
A risk-check service processes 100 orders a second on average. At 90 orders a second, its mean time in the service is 0.1 seconds. At 99 orders a second, it becomes one full second, even though traffic rose only 10%. A queue near capacity magnifies small changes in load. The simplest model makes the arithmetic transparent.
Define the toy service
Assume orders arrive as a Poisson process at rate and one server handles them in arrival order. Service times are independent exponential variables with mean , so is the service rate. This is the M/M/1 queue. It is stable only when . If orders arrive at least as fast as they can be served on average, a stationary backlog cannot exist in this model.
Let be the number of orders in the system, counting both waiting and in service. In stationarity, the flow from state to is , while the reverse flow is . Balance gives . Normalizing the geometric series yields
At , the server is idle only 10% of the time, and the mean system population is nine orders. At , idle time falls to 1% and the mean population rises to 99. The queue grows sharply because there is little spare service capacity left to clear random arrival bursts.
Convert backlog into time
Little’s law states that in a stable system, mean number present equals arrival rate times mean time present: . Applying it here gives
includes both waiting in line and being processed. Mean service time is , so mean queue wait is
With orders per second, each service takes 0.01 seconds on average. At , mean system time is seconds and mean queue wait is 0.09 seconds. At , mean system time is second and mean queue wait is 0.99 seconds. A 10% arrival-rate rise caused a tenfold increase in mean end-to-end time because the spare capacity fell from ten orders a second to one.
| Arrival rate | Utilization | Mean in system | Mean system time |
|---|---|---|---|
| 50/s | 50% | 1 | 0.020 s |
| 90/s | 90% | 9 | 0.100 s |
| 99/s | 99% | 99 | 1.000 s |
In this exact M/M/1 model, stationary system time has an exponential tail with rate , so its 99th percentile is . At 90 arrivals per second that is about 0.461 seconds; at 99 it is about 4.605 seconds. The tail scales with the same shrinking rate gap as the mean. “Average latency is acceptable” can therefore be a poor operational target if a decision has a hard deadline.
Distinguish system time from market outcome
An order waiting in a risk-check queue is not the same as an order waiting at an exchange price level. The model here describes processing latency at one server. It does not predict fill probability or queue priority in a limit order book; those depend on order-flow and venue rules. Limit-order fill probability addresses that different queue.
Real services also violate the exponential assumptions. Service times may be nearly fixed until a slow database call creates a long tail; arrivals may be bursty; multiple workers may operate in parallel; priorities may reorder requests; and backpressure may reject orders before they enter. An M/M/1 calculation is a useful baseline to reveal the utilization cliff, not a production latency forecast. Measure arrival bursts and service-time distributions, and report the percentile deadline that actually matters.
One part of the calculation survives much broader models: Little’s law, , holds for stable systems under suitable long-run averages even when arrivals and service are not exponential. The specific formula does not survive arbitrary service-time distributions. A monitoring dashboard can therefore use measured throughput and measured average population to cross-check measured mean time, while treating the M/M/1 prediction as a baseline. If those three observed quantities do not reconcile after consistent windowing and definitions, investigate whether rejected jobs, in-flight requests or clock cutoffs were counted differently.
Capacity planning under a deadline
If this toy service must keep mean system time below 50 milliseconds, solve , which requires orders per second. At , the mean-time constraint permits . For a 99th-percentile deadline of 50 milliseconds, the requirement is much stronger: , or orders per second. At the same service rate, arrival rate would need to be below about 7.9 per second under the M/M/1 tail model. This stark result is one reason real systems seek lower service-time variance and parallel capacity rather than relying on a single exponential server.
Drag traffic toward the server limit
The server processes 100 jobs per second on average. The curve is for one exponential server with Poisson arrivals.
Practice
Mean delayAn M/M/1 server handles 50 jobs per second and receives 40. What are the mean system time and mean queue wait?Show answer
seconds. Mean service takes seconds, so mean queue wait is 0.08 seconds.
StabilityWhat does the stationary M/M/1 formula say when arrivals rise from 40 to 50 jobs per second at the same 50-job service rate?Show answer
It no longer applies. At , there is no finite stationary mean backlog or waiting time in this model. The formula’s denominator approaching zero warns that the system has lost spare capacity.