An image-processing worker queue at launch

A media service creates 32 original image jobs per second and adds about 10% retries. A worker slot is held for 950 ms in its p95 planning scenario.

Jump to results

Inputs

Peak traffic and latency
req/s
×
ms
ms
ms
Pool sizing

Measure residence time at the boundary that owns the slots, such as database connection hold time.

%

Results

Runs in your browser
In flight at p95 duration
33.44requests
Pool utilization at p95
83.6%
Original traffic at saturation
38.278req/s

The p95 estimate exceeds the target utilization. Check queue wait and retry load.

Queue amplification as utilization rises
Illustrative latency by pool utilizationp95 reference duration 950 ms. 83.6 % modeled pool utilization.950 ms3,800 ms6,650 ms9,500 ms0%25%50%75%100%Modeled utilization 83.6 %
Detailed results
Effective arrival rate35.2 req/s
In flight at p50 duration16.896 requests
In flight at p99 duration80.96 requests
Slots at 80% target42 slots
Unused p95 pool share16.4 %
Illustrative queue multiplier6.098 ×

What to try

Forty workers exceed the 80% target in the p95 case. Compare a dedicated pool for large images with the 42 slots needed if jobs continue to share the same workers.

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

Should time waiting in the image queue count as busy worker time?

Use time after a worker takes the job when sizing workers. Include queue waiting only when estimating the number of jobs in the entire system.

How does image-size variance affect a 42-worker plan?

Large jobs can hold slots much longer and form bursts. Test the plan against representative size classes and measure queue delay separately.

Open API throughput & concurrency calculator