API Throughput, Concurrency & Little’s Law Calculator
Size a worker or connection pool from peak traffic, retry load, and measured latency. Compare p50, p95, and p99 planning scenarios.
Jump to resultsInputs
Results
Runs in your browser- In flight at p95 duration
- 231.84requests
- Pool utilization at p95
- 72.45%
- Original traffic at saturation
- 2,484.472req/s
The p95 estimate exceeds the target utilization. Check queue wait and retry load.
| Effective arrival rate | 2,016 req/s |
|---|---|
| In flight at p50 duration | 76.608 requests |
| In flight at p99 duration | 423.36 requests |
| Slots at 70% target | 332 slots |
| Unused p95 pool share | 27.55 % |
| Illustrative queue multiplier | 3.63 × |
How the estimate works
In-flight requests L = arrival rate λ × time in system W
The effective arrival rate includes retries. The three concurrency values are separate what-if calculations that use p50, p95, and p99 as fixed durations. Little’s Law itself connects steady-state averages, so these estimates have no concurrency percentile guarantee.
Pool utilization uses the p95 planning duration. The saturation ceiling is the original request rate that would keep every slot occupied at that fixed duration. Slots needed at a target utilization are rounded up.
The curve is a normalized M/M/1 illustration, 1 ÷ (1 − utilization). Real multi-worker queues, burstiness, and load-dependent latency can shift the knee. The curve clamps the vertical scale at 10× for readability.
Frequently asked questions
What latency belongs in Little’s Law for database connections?
Use the time a request holds a connection, with arrivals counted at the same pool boundary. End-to-end HTTP latency can include work that never occupies a database connection.
Does using p99 latency predict p99 concurrency?
It shows expected overlap in a scenario where all requests last as long as the supplied p99. Measure concurrency under representative bursts when a percentile is required.
How should I count retries for API capacity planning?
Divide total attempts by original requests during a comparable window. A ratio of 1.1 produces 10% more work than the original request rate.