All practice problems Bug of the Day: a new problem every midnight, free for everyone. Keep a streak with your friends.
Backend Engineering · System design · Hard
System design practice: Bot Swarm
Only 500 Golden Chai cups. Scalper bots want all of them. From 7:50 bots flood in — half of all traffic — refreshing the drop page thousands of times a…
The problem
- From 7:50 bots flood in — half of all traffic — refreshing the drop page thousands of times a second. Real customers must still get through.
- ≈ 8,000 real customers/s at peak
- From 7:50 PM: bots double the traffic to ≈ 16,000 req/s
- Bots hammer the drop API — your CDN can't cache it
You'll use: System design · Caching · CDN · Queues & workers · Database replicas · Rate limiting
Solve it free in your browser2–3 min · No coding needed
Show a hint
Bots make far more requests than any human. A rate limiter blocks them at the door, so you don't pay servers to serve scalpers.
What this teaches (spoiler)
Not all traffic deserves capacity. Rate-limit abusive clients at the edge before they cost you servers — and before they crowd out real users.