Runtyme
All practice problems

Backend Engineering · System design · Warm-up

System design practice: Exam Week Fuel

Everyone keeps refreshing the same menu. Exam Week Fuel at ChaiCart. Traffic builds to about 9,000 requests a second. One thing will go wrong. Keep 99%…

The problem

  • Exam Week Fuel at ChaiCart. Traffic builds to about 9,000 requests a second. One thing will go wrong. Keep 99% of customers served and stay within ₹4,300.
  • Peak ≈ 9,000 req/s
  • 80% of requests read the same menu data

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

Repeat reads of the same data belong in a cache, not in more database replicas.

What this teaches (spoiler)

Read-heavy traffic is a caching problem first: answer repeat reads from memory.

Bug of the Day: a new problem every midnight, free for everyone. Keep a streak with your friends.