SYSTEM-DESIGN
intermediate
Rate Limiter
Software Engineer path · lesson 72 of 99Animate token bucket and sliding window rate limiting algorithms to understand API throttling and traffic control.
Refill Rate:2/sec
Bucket:
10/10 tokens
Accepted: 0
Rejected: 0
Request Log
No requests yet
Which limiter is this?
Sort
Sort each behaviour into the rate-limiting algorithm it belongs to.
Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.
Token bucket
Drop items hereFixed window
Drop items hereSliding window
Drop items here6 pieces left to place
Test your knowledge
21 questions
Question 1 of 21
Score: 0
What happens in a token bucket when all tokens are consumed?
The short version
Rate limiting is like a bouncer at a club who only lets a certain number of people in per hour. The token bucket is like having a jar of tokens that refills slowly — each request takes one token.
Interview Questions
Google
Stripe
Cloudflare
Amazon
Netflix
Uber
Meta
Stripe
Datadog
Cloudflare
Google
Airbnb
References & Further Reading
Love this visualization?
Sign up to track your progress, earn achievements, use the AI assistant, and access your personal learning dashboard.
100% free • No credit card required