Index/Simulators

Get Premium
Simulators

Rate limiting

Send requests to a fixed window, a sliding log, a sliding counter and a token bucket at once, and watch each one decide: 200 or 429.

Four rate limiters, one client
Or play:

Send requests faster than 5 every 5 seconds and watch each limiter decide. Or play a scenario.

  • Fixed window

    —

    0 of 5 this window
    resets in 5.0 s

    0 allowed · 0 refused
  • Sliding log

    —

    0 of 5 in the last 5 s

    0 allowed · 0 refused
  • Sliding counter

    —

    0 × 1.00 + 0
    = 0.0 of 5

    0 allowed · 0 refused
  • Token bucket

    —

    5.0 of 5 tokens
    each request spends one

    0 allowed · 0 refused
Every limiter allows 5 requests per 5 seconds and answers each request with 200 (let through) or 429 (too many requests). The clock runs only while something is changing.
Read the explanation in APIs and Real-Time Communication, section 7.5