State Little's law and use it on a queue. Where does it help in practice?
Sketch your own answer first, then compare it with the one below.
A strong answer
In a stable system, the average number of items inside equals the average arrival rate times the average time each item spends inside: L = λ W.
For a queue, if 40 messages wait on average and messages enter at 20 a second, a message waits about 2 seconds. You can read two of the three numbers from a dashboard and get the third without timing messages.
It holds for any arrival pattern and any service order, but only for averages, so it says nothing about the slowest messages. "Stable" means the queue does not grow without limit. L, λ and W must also describe the same boundary: if L counts only waiting messages, W must be the wait and not the wait plus processing.
Sources
- John D. C. Little (1961). A Proof for the Queuing Formula: L = λ W.
- Mor Harchol-Balter (2013). Performance Modeling and Design of Computer Systems.