Discord2023
“How Discord Stores Trillions of Messages”
The same data model six years on: hot partitions, a service layer that merges identical reads, and a migration of the full history to a new database.
Live · video-processing-pipeline · stage 07 of 14
Work through a URL shortener, news feed, payment system and more. Make each design decision before you see the reasoning. Test the design against failures and changed requirements, then compare your work with the full written walkthrough. Free, no account needed.
Each starts from requirements and the numbers. The parts the scenario gives you are already drawn; you design the rest, then it fails.
Choices are checked against a key. Written answers you mark yourself, against specific points. Nothing is a quiz for its own sake: each step changes the system you are building.
Learn
Short explanations, each with a check that answers straight away.
Decide
Choose between designs that all sound plausible.
Break it
A worker dies, a message arrives twice, a request times out.
Change it
Ten times the traffic, or a requirement from sales.
Defend it
Say what the design guarantees, and where it stops.
Every system starts from a real writeup. Read theirs, then build yours and watch it break.
Discord2023
The same data model six years on: hot partitions, a service layer that merges identical reads, and a migration of the full history to a new database.
Stripe2020
Payment APIs where a retry after a timeout must never move money twice.
Cloudflare2017
Rate limits enforced in hundreds of data centres at once, where exact global counts would cost more than the attacks they stop.
Slack2017
A job queue that failed because its backlog lived in memory, and the redesign that moved the backlog to disk.
Mux2026
A video API that starts playback seconds after upload by transcoding segments on demand instead of the whole file up front.
Figma2022
Several people editing one design at once, kept in sync by a single server per document.
Every system, concept and mock interview is free, with no account. Credits are one-time packs for AI drafts, reviews and question sets. They never expire, and a failed run gives them back.
$0
forever, no account needed
Everything for learning
The whole learning product. Self-assessment is never removed or degraded.
$5
one-time, in USD
15 credits
$0.33 per credit. Never expires, nothing renews.
Recommended
$12
one-time, in USD
40 credits
$0.30 per credit. Never expires, nothing renews.
$25
one-time, in USD
100 credits
$0.25 per credit. Never expires, nothing renews.
A verified account starts with 5 welcome credits, once. Payments by Dodo Payments; prices include applicable taxes where shown.
The refunds page and the AI page have the details.