Tools

Rate Limiter Calculator

Set a rate, a burst size and an algorithm to see the sustained throughput, token refill rate, burst recovery time and the X-RateLimit-* headers to send. Add your expected traffic to find out how much of it gets limited. Seedable from the URL, e.g. ?rate=100&unit=per-minute&burst=200 .

Limit

How many requests can arrive at once before the limit bites.

Algorithm

Token Bucket: Tokens accumulate up to burst size at the refill rate. Requests consume tokens; refused when empty. Allows bursts up to capacity.

Expected traffic (optional)

Leave blank to skip the traffic comparison.

Sustained rate

Per second

1.6667

Per minute

100.00

Per hour

6000

Burst behaviour

Burst capacity

200 req

Refill rate

1.67 tokens/second

Recovery after full burst

2m 0s

Time to refill an emptied bucket.

Wait when limited

600.0 ms

Time until the next request is allowed.

Traffic

Enter your expected traffic to see how much of it would be limited.

Response headers

Send these on every response, not only the 429s.

Share

marduc812

SourcePrivacy

© 202620261001_c10cb13