📚 dsaflash.cards
Problems
Log in
Sign up
Home
/
System Design
/
Rate Limiting and Throttling
Rate Limiting and Throttling
Question 1 of 6
What is the key difference between the token bucket and leaky bucket algorithms?
A
Token bucket allows bursting up to bucket capacity; leaky bucket produces a constant output rate regardless of input
B
Leaky bucket uses Redis; token bucket uses in-memory counters
C
Token bucket is more complex to implement; leaky bucket is simpler
D
Token bucket is for IP-based limiting; leaky bucket is for user-based limiting
← Back to categories