Runtyme
All practice problems

Backend Engineering · System design · Intermediate

System design practice: Flash Sale at 8

A celebrity is about to post the ₹1 chai offer. Normal traffic until 8:00 PM, then the post goes up and traffic jumps 10× in two minutes — mostly to one…

The problem

  • Normal traffic until 8:00 PM, then the post goes up and traffic jumps 10× in two minutes — mostly to one offer page. Servers take 4 minutes to boot.
  • ~2,000 req/s, then ≈ 20,000 req/s from 8:00 PM
  • Most of the spike is one offer page — the same for everyone
  • New servers take 4 minutes to boot

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

Most of the spike is the same page for everyone — let a CDN serve it from the edge. Prepare before 8:00; boots are slow.

What this teaches (spoiler)

For spikes you can see coming, prepare ahead — scaling takes minutes. And traffic that's identical for everyone belongs on a CDN, not your servers.

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