PrepCity

Design a URL shortener

Route · 29 of 34Route 29 / 34, see the whole routeOpen the lab

By the last page, this is the design you will have built. Drag it, or Show all, to see every part.

Route · step 29 of 34 · 14 pages · about 14 min

Design a URL shortener

The classic first interview question, worked end to end: agree the requirements, estimate, two calls, one table, then fix one wall at a time.

New words you’ll learn

  • Redirect
  • Status code

Page by page