bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths

Loading lesson path

Learn/System Design/Design a URL Shortener
System Design•Design a URL Shortener

Design a URL Shortener: Capacity Estimation

Design a service that turns long URLs into short links, redirects on access, and reports click counts.

How to approach it

Capacity estimation converts product numbers into engineering pressure. Go from daily active users to queries-per-second (QPS ≈ DAU × actions ÷ 86,400, with a 2–3× peak), then to storage (writes/day × payload × retention) and bandwidth (QPS × response size). You only need the order of magnitude — it tells you whether to design for read scaling, write scaling, or storage first.

Assumptions

AssumptionValue
New links/day10M
Read:write ratio100:1
Avg URL size500 B
Retention5 years

Derived numbers

QuantityEstimate
Write QPS~115/s
Read QPS~11.5K/s
Rows in 5y~18B
Storage~9 TB

Note

Read QPS and the key-space size drive the design — not write throughput.

Previous

Design a URL Shortener: Requirements & Scope

Next

Design a URL Shortener: API & Data Model