SD-22 · GUIDED WORKSHEET
Design a URL shortener from first principles
Defend a shortener design at the stated hypothetical scale.
Read. Try. Defend.
Companion to the Buildfest System Design guides.
Your practice brief
- Draw create, redirect, revoke and analytics flows, marking the source of truth.
- Calculate raw storage for one year and state retention assumptions.
- Describe one app failure, one database failure and one malicious-link scenario; propose evidence for each mitigation.
Your response stays in this tab. Download it before leaving. This self-guided worksheet is not graded or saved to your account.
Reveal reasoning after attempting
At 300 MB/day, 365 days adds 109.5 GB of raw link records in decimal units, before overhead and retention changes. Multiple architectures are valid. The defense should connect each added component to a requirement and explain revocation freshness and ownership.
Other approaches can be valid. Check your assumptions, correctness, failure handling and trade-offs.
