Part VI — Case Studies
Three worked rounds: one backend-shaped, two frontend-shaped. Each is a different shape of problem, not a different product. An interviewer can ask for any of a hundred products, but only about a dozen shapes sit underneath.
Read them out loud against a timer. A case study you have only read is worth very little. A case study you have talked through for forty minutes is worth the whole section.
Chapters
| # | Chapter | The shape it teaches |
|---|---|---|
| 01 | Design a URL Shortener | Mint a key with no coordination; serve enormous reads from cache |
| 02 | Design a Collaborative Document Editor | Convergence without a lock — CRDTs, offline merge, shared undo |
| 03 | Design an Infinite Feed | Two budgets — bytes fetched and DOM nodes kept |
These three cover the shapes the others reduce to: a read-heavy key–value service, shared state that must converge, and a client with a render budget.
Each follows RADIO inside its How It Works section: requirements, architecture, data model, interface, optimisations. The framework itself is in Driving the Design Round, Backend and Frontend. One shape this section does not carry is a retrieval-based AI product, asked as "design a RAG system". AI in Interviews works that one.
What Interviewers Probe For
- Do you scope before you draw? Every chapter here names what it cut, out loud, in the requirements step. That is deliberate.
- Do you reach the interesting decision? Each design has one: key generation, the merge rule, the render budget. A round that never gets there scores badly, however tidy the diagram is.
- Can you say what your design cannot do? Tombstones that never leave, a footer the infinite feed makes unreachable. Naming a limit is stronger than pretending there is none.
Reading Order
Read 01 first. It is the smallest complete round, and the one to rehearse until the structure is automatic. Then read 02 and 03 in either order. They are independent.
Interview sprint: 01 and whichever of 02–03 is closest to the role, out loud, timed at 45 minutes each.
⚠️ Three studies, on purpose. The classic prompts (news feed, chat, ticketing, a live dashboard) reuse the shapes these three teach. Rehearse them with the same structure once these feel automatic.