Design a URL Shortener

Medium · System Design · about 45 minutes

Asked at Amazon, Dropbox, Google, Meta, Microsoft, Reddit.

Design a service like Bitly. Users submit a long URL and receive a short link; visiting the short link redirects to the original. Support optional custom aliases and expiration. Assume 100M new URLs per month and a 100:1 read-to-write ratio.

Related guides