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: Golden Hour
The Golden Chai drop is back. So are the bots. So is everyone else. A celebrity, a limited drop and scalper bots, all at 7:50. Traffic hits 20,000 req/s…
The problem
- A celebrity, a limited drop and scalper bots, all at 7:50. Traffic hits 20,000 req/s and 40% of it isn't human. Keep real customers happy without paying to serve robots.
- ≈ 12,000 real customers/s at peak
- From 7:50 PM bots add another 8,000 req/s
- Half of the human traffic is the drop page
You'll use: System design · Caching · CDN · Queues & workers · Database replicas · Rate limiting
Solve it (expert level)2–3 min · No coding needed
Show a hint
Block the bots at the edge, serve the drop page from the CDN, and cache reads. What's left is small enough for a modest number of servers.
What this teaches (spoiler)
Defense and scaling go together: shed abusive traffic first, serve identical content from the edge, and only then size your servers for what's left.