Rate Limiter · Token Bucket

Watch the bucket
drain, refill, and hold the line.

A Redis-backed token bucket, enforced atomically via a Lua script. This page calls the real deployed service — click "Send request" and watch the actual response. Your clicks share one bucket for this visit, so the second click within the cooldown window will show a real denial, not a simulation. Switch to Simulated mode to explore capacity/refill settings without touching the live service. View source →

checking service… recheck
Bucket state
1.00 / 1
refills 0.0167 tok/sec
Calls this URL directly from your browser. Requires CORS to be enabled on the service — if requests fail, the demo falls back to simulated mode automatically.

Request log

allowed 0
denied 0
No requests yet — click "Send request" to start.