Laws · Queues and systems

Queueing theory

The maths of waiting in line. The busier a server gets, the faster waiting times grow -- slowly at first, then explosively near 100%.

50% busy1× job time80% busy4×90% busy9×95% busy19×99% busy99×Average wait in line = busy ÷ (1 − busy) × job time,for a single server with random arrivals

In real life

A till that takes one minute per customer and is busy half the time has a one-minute wait on average. At 90% busy the wait is nine minutes; at 95% it is nineteen.

In data and work

A team, server or database run near full capacity looks efficient on a utilisation chart, but its queue of waiting work grows out of all proportion. Spare capacity is what keeps waits short.

Watch out

The multiples assume random arrivals and random job lengths; steadier work waits less, so check the variability before trusting the numbers.

Agner Krarup Erlang, a Danish engineer at the Copenhagen Telephone Exchange, published the first paper in 1909. David George Kendall introduced the standard notation for queues in 1953.

Source: Wikipedia

Related

Walk-ins, any order9 minWalk-ins, one drink4.5 minBooked, one drinkalmost noneAverage wait at a barista 90% busy, 1 minute acoffee, by Kingman's formula
Kingman's formulaWaiting time depends on how busy the server is multiplied by how unpredictable the work is. Both make queues longer.
10 arrive per hour1Each stays 0.5 hours2About 5 inside at once3
Little's lawThe number of things in a system equals how fast they arrive times how long each one stays.
Find thebottleneckGet the mostfrom itPace the restto itAdd capacitythereLook again
Theory of constraintsEvery system has one bottleneck that limits its output. Improving anything else does not help.