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 · Intermediate
System design practice: Checkout Crunch
Everyone wants to pay at once. The payment provider is… slow. At ~7:45 the payment provider starts taking seconds to respond. Every checkout waiting on…
The problem
- At ~7:45 the payment provider starts taking seconds to respond. Every checkout waiting on it ties up a server. Find a way not to wait.
- Peak ≈ 5,000 req/s, 40% are checkouts
- ⚠ Payment provider expected to slow down from 7:45 PM
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
Put checkouts on a queue: the app replies “order received” instantly and workers (~300 checkouts/s each) talk to payments in the background.
What this teaches (spoiler)
Never make users (or your servers) wait on a slow third party. Queue the work, reply right away, and let background workers handle it.