Let’s talk

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. 1. Learn the design

    The requirements and the core decision, with the trade-off said out loud.

  2. 2. Break it

    Each trap is a real bug in that design. Step through it until it breaks.

  3. 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.

Start world 1
  1. 1. What we are building
  2. 2. Hash or counter
  3. 3. The ID collision
  4. 4. The stale redirect
  5. 5. Analytics on the hot path
  6. 6. The vanity alias race
  7. 7. Cleanup at scale
  8. 8. Build it
7 of 8 ready, the rest are being written

Coming next, in order

  1. W2Ticket bookingMedium
  2. W3PaymentsMedium
  3. W4Rate limiterHard
  4. W5Notifications & queuesHard
  5. W6ChatHard
  6. W7News feedExpert
  7. W8Ride & food deliveryExpert
  8. FinalURL shortener at scaleBoss

More from the lab