← Mock Hub|

System Design Standard (45m)

L5
Stage 1 of 4: Stage 1: Requirements & Capacity Sizing
Stage: 00:00 / 8:00Total: 00:00 / 45:00

Design a URL shortener

Topics: caching, databases, consistent-hashing · Budget: 25m

"Design a service like bit.ly. A user gives us a long URL and we hand back a short one. Anyone who visits the short one ends up at the original."

That is the whole prompt, and it is deliberately thin — the first thing being assessed is whether you fill the gaps yourself or start drawing boxes.

Work through it the way an interview goes: agree what you are building, size it, design the interface, choose where the data lives, decide how it scales, and say what breaks first. Six questions, and you will get a scorecard at the end naming which of the six was weakest.

There is no single right architecture here. There are answers you can defend and answers you cannot, and every option below tells you which it is once you have committed.