Queue latency estimator
A server that is 50% busy feels fast. The same server at 95% busy can be ten times slower, even though nothing about the code changed. This calculator shows why.
At 75% busy, a request takes 23.6 ms on average, and 99% wait less than 35.8 ms in the queue.
Your system
Average time one worker spends on one request.
Threads, processes or connections serving one shared queue.
The detail
What it shows
The calculator uses the M/M/c queue: requests arrive at random, each takes a random time to serve, and a fixed number of workers share one queue. Real systems are messier, but the shape is right, and the shape is what you design around.
Little’s law links the number of requests in the system to the arrival rate and the time each spends there (L = λW). Backlog mode models a burst instead: traffic runs above capacity for a while, a queue builds, and it can take longer than the burst to clear.
How to read it
- Utilisation is arrival rate divided by capacity. At 100% or more, the queue grows without limit and latency has no steady value.
- The curve plots mean response time against utilisation. The “You” marker is where you are now.
- Chance of waiting is the share of requests that find every worker busy.
- “In flight” is Little’s law: arrival rate times mean response time.
- In Backlog mode, the chart shows requests waiting over time: up during the burst, down while it drains.
- Backlog is (burst rate − capacity) × burst length. Time to drain is the backlog divided by (capacity − normal rate). At or above capacity, it never drains.
- Backlog mode has no random arrivals, so its times are a floor.
Questions
What utilisation should I plan for?
It depends on how much waiting you can afford and how bursty traffic is. Many teams keep steady-state utilisation well below 100% so bursts and failovers do not push them onto the steep part of the curve. Use the tool to see where the curve turns for your service time and worker count.
Is M/M/c accurate for real servers?
It assumes random (Poisson) arrivals and exponentially distributed service times. Real traffic is often burstier and service times have longer tails, which usually makes waiting worse than the model predicts. Treat the numbers as a lower bound and the shape as the lesson.
What is Little’s law?
L = λW: the average number of items in a stable system equals the average arrival rate times the average time each item spends in it. John Little published a general proof in 1961.
Why does adding workers help more than the arithmetic suggests?
With one shared queue, a request waits only when every worker is busy. The more workers share the queue, the less likely that is at the same utilisation, so waiting falls faster than capacity rises.
Why does a short burst take so long to clear?
The queue only shrinks by the spare capacity, the gap between what the workers can finish and what is arriving. When normal traffic uses most of the capacity, that gap is small, so each extra second of burst costs many seconds of recovery. If normal traffic equals or exceeds capacity, the queue never clears.
How accurate is Backlog mode?
It is a fluid model: arrivals and service are smooth rates with no randomness. It gives the size of the queue a burst leaves behind, but real queues also wait at random on top of that, so the true waits are usually somewhat worse.
Learn it properly
Sources
Last updated
More tools
All tools- estimatorBack-of-envelope estimatorTurn daily users into requests per second, storage and bandwidth, with the working shown.Open tool
- simulatorConsistent hashing simulatorA hash ring with virtual nodes: key spread per node, and how many keys move when the cluster changes.Open tool
- estimatorCache hit rate estimatorEstimate hit rate, mean latency and origin load for an LRU and an ideal cache under Zipf-skewed traffic.Open tool