The bouncer at the door
The limit is 5 a minute. Under a fixed window, how many can one client land in a two-second span?
The bouncer keeps one running count for one client and turns away anyone past the limit. Ten requests arrive on a fixed clock, and the list marks where the minute rolls over. Watch the count the middle panel is keeping reset at that seam, and see who gets in just after.
Preparing for interviews? The ten-week plan puts this in order with DSA and the design rounds.
Included with a plan
This lab is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.
See plansAlready a member? Sign in
Or start free: a free account opens lessons 2 and 3 of every track.
the lesson Rate limiting: the token bucket
The whole idea this lab came from, told start to finish.
on the path Module 3 of 32 in System Design: Holding up under load
The lessons, boards and videos around this lab, in reading order.
see also Large-scale cluster management at Google with Borg in Papers.