Components · Traffic and compute

Rate limiter

Token bucket in front of a service.

Lesson
Coming soon
Zone
edge
Place it
3 cr on the blank canvas, free inside a problem

At a glance

Did you know
Most limiters use a token bucket: tokens refill at the rate, and the bucket size is the burst you allow.
Rule of thumb
Return 429 with a Retry-After header so well-behaved clients back off.
Watch out
A limit below your real peak rejects real users.

Problems that start with it

Full lesson coming soon

Lessons are being added one component at a time: how it works, its settings, a live exercise to break and fix it, interview questions and a short check. See the Circuit breaker lesson for what one looks like.