Design a URL Shortener (aka.ms)
A URL shortener stores one mapping, short code to long URL, and serves it back billions of times. The create path is small. The redirect path is where the traffic is, and the code generator is where the interesting distributed-systems problem hides. aka.ms is Microsoft's own short-link service. It redirects to Microsoft pages and supports custom aliases, so a link can read aka.ms/some-name instead of random characters. The same prompt also arrives as "design TinyURL" or "design Bitly", and then it's sized like a public service with a hundred million new links a day. That's the version below, because it's the one that makes the numbers and the deep dives matter.
MicrosoftPremium lesson · System design round
The Microsoft design, worked end to end.
- The API and data modelSystem design · Signature problem
- The design, drawn out1 diagram
- 7 deep divesWith the tradeoffs
$49 a year · all 107 companies · instant access
1,382 Microsoft interview reports · guide updated
Microsoft interview guideKnow what Microsoft asks before you walk in.
21 coding · 9 system design · 24 behavioral questions
Get their questions first.
InterviewLegend is independent and not affiliated with or endorsed by any company it covers.