Skip to content
PMInterviewKit
← All questions
Technicalstandard

How would you design a URL shortener, at the level a PM needs?

How to approach it

Start with requirements and scale (how many links created versus clicked), because reads far outnumber writes and that shapes the design.

How a strong answer opens

“Before the design, I'd clarify features and scale. Links are created once but clicked many times, so reads far outnumber writes, and that shapes everything.”

Outline of a strong answer

Try answering out loud for a few minutes before you open this.

  1. Clarify features: custom links, expiry, click analytics
  2. Estimate scale: links created per day versus clicks per day
  3. Core flow: create a short code, store the mapping, redirect on click
  4. Use caching for popular links since reads dominate
  5. Discuss abuse: spam and phishing links, rate limits
  6. Name metrics: redirect speed, uptime, abuse rate

Where this question usually goes wrong

Jumping into hashing details without clarifying requirements, scale, or the abuse problem of spam and phishing links.

Learn the method

System design for PMs in Module 6, Technical for PMs.

The full kit has worked answers in full, start to finish, for every round type. $129 once.

Get one email when the full kit opens

No spam: just one launch email. See our privacy policy.