A Redis token-bucket limiter in NestJS. Drive traffic with the slider and watch the bucket drain and requests flip to 429 the instant you cross the sustained rate.
Rate limiting caps how many requests a server will handle so a flood of traffic can't overwhelm it. Requests over the limit are politely turned away instead of crashing the system.
Picture a bucket that holds 10 tokens and refills 5 per second. Every request spends one token. Send requests slowly and the bucket keeps up — send a flood and it empties, so extra requests get rejected with HTTP 429 (“Too Many Requests”) until it refills.
Try a scenario — or set your own rate with the slider.
The server allows 5/s. Below that, everything passes; above it, the bucket drains and extra requests turn red.
Each request spends 1 token; refills +5/s. Empty → requests rejected.
Each square is one request — green allowed (200), red blocked (429).
Requests per second — green served, red throttled.
Waiting for traffic…