Question 8 of 10Pro Only
How would you design a URL shortener service like bit.ly?
Sample answer preview
Designing a URL shortener requires addressing key requirements first. The system should convert long URLs to short codes, redirect short URLs to original URLs, handle high read traffic since redirects vastly outnumber creates, and optionally track analytics like click counts.
base62counter-basedhash-basedconsistent hashingHTTP 301HTTP 302