Skip to content

ONE QUESTION. YOUR REASONING.

Design Bitly

Design a URL shortener like Bitly: people paste a long link and get a short one that redirects to it.

System designStorage, files and linksMid-levelSenior

YOUR BRIEF

What to work through

Work through bitly as a spoken system design interview. Start by clarifying the scope, sketch a working design and explain the trade-offs behind your choices.

  • Create a short link for a long URL
  • Optionally choose a custom alias
  • Optionally set an expiry time
  • Visiting a short link redirects to the long URL

BEFORE YOU START

Constraints to discuss

  • Every short code is unique
  • Redirects answer in under 100 ms
  • 99.99% availability for redirects
  • Reads outnumber writes about 1000 to 1
Need a starting point?

Watch for these common gaps as you prepare:

  • Using a prefix of the long URL as the code
  • Choosing 301 by default and losing expiry and analytics
  • A cache TTL longer than the link’s expiry
  • Custom aliases and generated codes in separate namespaces that can collide
Read: System design questions and who asks them

Why this question is in the collection

These sources connect the problem to company interview reports or preparation guides. They do not guarantee what a company will ask you.

KEEP GOING

Your next question

Infrastructure and platformDesign a rate limiterInfrastructure and platformDesign an A/B testing platformInfrastructure and platformDesign an ad click aggregatorInfrastructure and platformDesign an ad serving system
Browse the collection
01

Pick a question

Read the brief and choose what you want to work on.

02

Talk it through

Explain your thinking. Respond to follow-ups. Draw when a design needs it.

03

Find your next improvement

Use the feedback from your interview to decide what to practise next.