Little’s Law for Concurrent Work in Flight

Connect throughput, average occupancy and residence time for a stable system measured at one consistent boundary.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Use a common population for all three quantities
  2. The law provides an average relationship

Use a common population for all three quantities

In steady state under the law’s conditions, average items \(L\), throughput \(\lambda\) and average residence time \(W\) obey \(L=\lambda W\). For a service completing 200 requests per second with average residence \(0.04\) seconds, the average number in that service is eight. If residence includes queue plus execution, occupancy must include both too. Mixing service duration alone with total queued population would give a different answer.

The law provides an average relationship

A concurrency limit of eight does not by itself guarantee a specific latency distribution or 200 requests per second. Changes in service time, bursts, retries or dropping work can alter the measured population and rate. Evaluate stability and the measurement window first. Asynchronous I/O uses explicit outstanding request limits. Stream backpressure changes how work enters and waits across a pipeline.[1]

References

  1. John D. C. Little, A Proof for the Queuing Formula L = λW ↩