The Desi Architect
Notes / Browser demos / One booking API, five ways to say "too many"
Interactive demo Free

One booking API, five ways to say "too many"

Try the model, then compare what changed. This is a browser simulation with illustrative inputs.

Illustrative simulation. The values come from a model, not a measured production system.
Try it · rate limit lab

Every algorithm below sees exactly the same requests. The limit is 10 requests per second per key. Pick a traffic pattern and watch where the five of them agree and where they do not. Time here is simulated, one real second is one simulated second.

Simulated clock0.0 s
Requests arrived0
PatternSteady

allowed (for the leaky bucket: queued)deniedarrived. Last 15 seconds, one column per quarter second.

Learn the idea behind it

The demo shows what breaks. The lesson explains why it breaks, and what you give up with each fix.

This demo is free. The System Design pass (₹499) opens all 28 demos, 36 design interview problems and 75 Docker labs. See what the pass includes →

Read the related guide