Skip to main content
A limiter refuses excess traffic at the door. It serves slightly less, but what it does serve stays fast instead of queueing.

What to watch

The limiter does not add capacity. It refuses some requests quickly so the rest are answered quickly: at 600 offered it serves 200 at 36ms, where removing it serves 234 at 235ms. Saying no fast is what buys the predictable wait.

What it is made of

Under load

Measured by running this design through the simulator at multiples of its own offered rate of 150 requests a second. Twenty seconds of simulated time, one fixed seed, so the same numbers come out every time.
This design holds 150 requests a second with 0% errors. At 225 it is losing 5% of them.

Open this example

Load Rate limited API from the Examples menu and drag the traffic slider yourself.