InterviewLegend

Design a URL Shortener

Signature problem
Alex Chen40 min readAdded 183 real interview reports

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.

The JPMorgan angle
At JPMorgan this shows up in the experienced-hire Superday, about 45 minutes on the HackerRank whiteboard, mostly for SDE-2. Reported versions ask for different slices: caching and database design, SQL or NoSQL and code generation, or "using AWS where possible" with a push on UUIDs. Some interviewers draw the boxes before you start.

JPMorganPremium lesson · System design round

The JPMorgan design, worked end to end.

  1. The API and data modelSystem design · Signature problem
  2. The design, drawn out2 diagrams
  3. 4 deep divesWith the tradeoffs
Get the JPMorgan questions

$49 a year · all 107 companies · instant access

183 JPMorgan interview reports · guide updated

JPMorgan interview guide

Know what JPMorgan asks before you walk in.

13 coding · 6 system design · 18 behavioral questions

Get Premium$49 a year · Instant access
Or start freeNo card.

Get their questions first.

Had your JPMorgan interview?How we research

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.