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: The Final Boss
Diwali. Bots. Slow payments. A database that's already sweating. Everything at once: 24,000 req/s, bots, a slow payment provider, and so many orders that…
The problem
- Everything at once: 24,000 req/s, bots, a slow payment provider, and so many orders that the main database spends most of its capacity on writes. A cache alone won't save the reads this time.
- ≈ 24,000 req/s at peak, 30% bots from 8:05 PM
- ⚠ Payments slow from 7:45 PM
- Orders are so heavy that writes eat most of the main database
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
Use every block: rate limit, CDN, cache, a queue for checkouts — and a read replica, because writes leave the main database almost no room for reads.
What this teaches (spoiler)
Writes compete with reads on the main database. When writes are heavy, caching isn't enough — move reads to replicas, push slow work to queues, and keep every layer's bill in mind.