Log inStart free
LESSON 33.19 · 5 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Little's Law

Count one area two ways, and L = λ·W appears.


Pro lesson. Stage 1 is free to watch. Pro opens all 5 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 33.19 · QUEUE BAYλ 3.00 REQ/S · 60 IN 20.03 S
01
Stage 1 of 5 · Arrivals
Each tick is one request. 60 requests in 20.03 s give an arrival rate λ of 3.00 per second.
Explain it simply

Each teal tick is one chat request. Little's Law looks at a window of time. Here the window starts empty and ends when the last request leaves. The arrival rate is the arrivals divided by its length. It is a little under the set rate: the window also holds the last stay.

60 arrival ticks in a window of 20.03 s. The arrival rate is 3.00 requests per second.

requestswaiton the GPU, window endafter the cutmean L
time (s)05101520window end 20.03 sarrivalsarrivalsarrival rateλ = 3.00 req/s60 requests in 20.03 swindow: until the last one leavestime (s)05101520window end 20.03 sarrivalsarrivalsarrival rateλ = 3.00 req/s60 requests in 20.03 swindow: until the last one leaves
Toy: 60 requests, one toy GPU, one request at a time
STAGE 1 / 5
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
λ=nTw\sy{lam}{data}{\lambda} = \frac{n}{T_w}
λ=6020.03≈3.00 req/s\lambda = \frac{60}{20.03} \approx 3.00\ \text{req/s}

The arrival rate is the arrivals divided by the window's length.

Common mix-ups

MYTHLittle's Law needs random arrivals and first come, first served.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01With first come until empty, W is 0.366 s at 3 req/s. Does it stay at 4 req/s?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
  • 4 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.