Runtyme
All practice problems

Backend Engineering · System design · Hard

System design practice: Double Trouble

A flash sale AND a slow payment provider. On the same night. At 7:55 the offer goes viral (traffic ×3, mostly the offer page). Ten minutes earlier the…

The problem

  • At 7:55 the offer goes viral (traffic ×3, mostly the offer page). Ten minutes earlier the payment provider slows to a crawl. Survive both.
  • ~4,000 req/s, then ≈ 12,000 req/s from 7:55 PM
  • 40% of the spike is the offer page — the same for everyone
  • ⚠ Payments slow down from 7:50 PM — 20% of requests are checkouts

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

Two separate bottlenecks: the identical offer page belongs on the CDN, and slow checkouts belong on a queue with workers. A cache keeps the database calm.

What this teaches (spoiler)

Real incidents rarely come alone. Identify each bottleneck separately — static traffic, slow dependencies, database load — and give each its own fix instead of one giant server bill.

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