#1Easy
Design a URL Shortening service like TinyURL
Asked by:GoogleFacebookAmazonMicrosoft
Recommended Solutions from the Web
Good overview
https://medium.com/%40sandeep4.verma/system-design-scalable-url-shortener-service-like-tinyurl-106f30f23a82
Good solution
http://designgurus.io/blog/url-shortening
Neetcode solution
https://www.youtube.com/watch?v=qSJAvd5Mgio
Another solution
https://blog.algomaster.io/p/design-a-url-shortener
Key Details & Edge Cases You Should Know
•
How do you generate a unique short ID?
•
How do you avoid collisions?
•
How do we prevent malicious links, phishing, or spam?
•
Do we rate-limit requests from abusive clients?
•
Do we support link expiration or deletion?
•
How do we store logs for analytics?
•
Should we cache frequently accessed short URLs? Where? (Redis, CDN)
•
How do we handle hot keys (very popular links)?