Design a URL shortener
Design a service that turns a long URL into a short one and redirects visitors who open it.
FresherBeta
Clarify
Step 1 of 5Real rounds start with questions, not boxes. Write what you would ask the interviewer, then see what they would answer.
What the interviewer tells you
- Create a short link from a long URL; optional custom alias and expiry
- Redirect quickly and correctly; a read-heavy service
- Short links must not collide and must be hard to enumerate if links are private
- Out of scope until asked: analytics dashboards, accounts
Step 1 of 5