InterviewLegend

Design a URL Shortener

Frequently asked
Alex Chen40 min readAdded 36 real interview reports

A URL shortener maps long links to short codes. Someone pastes https://example.com/reports/2026/q3?team=ops&view=full, gets back something like sho.rt/4kT9zQa, and every click on the short link lands on the long one. There are two operations, shorten and resolve, and each one is a few lines of code. At Anduril the design round is usually one interview of about an hour, drawn on Excalidraw (or a whiteboard in person), next to two coding rounds and a behavioral. Many design prompts there are tied to Anduril's domain, but standard designs show up too, and this one has been reported since 2024. A 2024 candidate got it with about 35 minutes to work it. If the interviewer says "small scale", take it seriously, because it decides what they want to see. At this size every link fits in one process's memory, so the interesting work moves into the data structures.

The Anduril angle
In one 2026 Anduril round, "small scale" meant exactly that. A candidate opened with a database in a hiring-manager round, and the interviewer asked for the data structure that holds the links. That round sank an otherwise good loop. Other candidates describe TinyURL with no scale given, so listen to the framing.

AndurilPremium lesson · System design round

The Anduril design, worked end to end.

  1. The API and data modelSystem design · Frequently asked
  2. The design, drawn out2 diagrams
  3. 5 deep divesWith the tradeoffs
Get the Anduril questions

$49 a year · all 107 companies · instant access

20,000+ candidate reports · guide updated

Anduril interview guide

Know what Anduril asks before you walk in.

26 coding · 4 system design · 14 behavioral questions

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

Get their questions first.

Had your Anduril interview?How we research

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