Labs / Backend & system design
Interview traps
Learn system design by watching it break. Each world is one system, harder than the last: learn the design, break it with the bugs interviewers ask about, then build it yourself.
Every trap is runnable code- 1. Learn the design
The requirements and the core decision, with the trade-off said out loud.
- 2. Break it
Each trap is a real bug in that design. Step through it until it breaks.
- 3. Build it
Put the system together yourself and see which traps your design falls into.
The worlds
World 1 ·Easy ·8 steps
Design a URL shortener
Learn the design, watch it break five ways, then build one that survives launch day.
- 1. What we are building
- 2. Hash or counter
- 3. The ID collision
- 4. The stale redirect
- 5. Analytics on the hot path
- 6. The vanity alias race
- 7. Cleanup at scale
- 8. Build it
7 of 8 ready, the rest are being written
Coming next, in order
- W2Ticket bookingMedium
- W3PaymentsMedium
- W4Rate limiterHard
- W5Notifications & queuesHard
- W6ChatHard
- W7News feedExpert
- W8Ride & food deliveryExpert
- FinalURL shortener at scaleBoss