Design a URL shortener
Practice data modeling, redirection latency, caching, and abuse controls.
- data modeling
- caching
- availability
- Difficulty
- Foundational
- Time
- 45 min
- Access
- free
Work through requirements, estimates, data, APIs, architecture, bottlenecks, reliability, and a final design. Your response survives every refresh.
Start with one free scenario. Premium adds depth and additional attempts.
Practice data modeling, redirection latency, caching, and abuse controls.
Balance fan-out, ranking freshness, and read latency at scale.
Reason about connection state, ordering, presence, and offline delivery.
Build a high-write ingestion and aggregation path with useful queries.
Protect money movement with idempotency, immutable events, and reconciliation.