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 · Warm-up
System design practice: Menu Mania
Everyone is browsing the sale menu. Over and over. Traffic hits ~9,000 req/s and nearly all of it reads the same menu. More app servers won't save the…
The problem
- Traffic hits ~9,000 req/s and nearly all of it reads the same menu. More app servers won't save the database. New blocks unlocked.
- Peak ≈ 9,000 req/s
- 80% of requests read the menu — the same data, again and again
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
The database can only do ~3,000 queries/s. The menu barely changes, so a cache answers most reads for much less than replicas.
What this teaches (spoiler)
Read-heavy traffic is a caching problem first. A cache in front of the database answers repeat reads from memory; replicas also work but cost more.