Repair collisions and idempotent link creation.
Whole systems · Intermediate · 11 min
Design a URL Shortener
Separate creating a unique mapping from serving fast, policy-aware redirects.
1Link user2Short-link service
- 1Link user → Short-link serviceRequestState the short-link contract
- 2Short-link service → Link userReplyReply: Short-link service
Conceptual illustration · figures do not imply user counts, deployed capacity or replica counts.
2 components visible · Link user + Short-link service highlighted
Orange: request / query · Blue: reply · Purple: event / control · Arrows show direction; speed is illustrative.
You’ll learn
- Enforce code uniqueness at the mapping boundary.
- Redirect caching has a product freshness contract.
- A mapping needs ownership and a lifecycle.
PUT THE IDEA TO WORK

