Design a URL Shortener
A URL shortener maps a long URL to a short code, like sho.rt/aZ3kQ9x, and redirects anyone who opens the code to the original address. Creating links is rare. Opening them is constant, often a hundred times more frequent, and a single link pasted into a big email or text campaign can get thousands of taps a second.
The product fits on a napkin. The interview is about the choices underneath it: how codes are made so two links never share one, where six billion links live, and how a redirect stays fast when one code goes viral. Then comes how it splits into services you can deploy and scale on their own.
JPMorganPremium lesson · System design round
The JPMorgan design, worked end to end.
- The API and data modelSystem design · Signature problem
- The design, drawn out2 diagrams
- 4 deep divesWith the tradeoffs
$49 a year · all 107 companies · instant access
183 JPMorgan interview reports · guide updated
JPMorgan interview guideKnow what JPMorgan asks before you walk in.
13 coding · 6 system design · 18 behavioral questions
Get their questions first.
InterviewLegend is independent and not affiliated with or endorsed by any company it covers.