Saturday, June 18, 2016

Design a tiny URL or URL shortener

Step 1: Find requirements
The URL-shortening service could be meant to serve just a few thousand users, but each could be sharing millions of URLs. It could be meant to handle millions of clicks on the shortened URLs, or dozens. The service may have to provide extensive statistics about each shortened URL (which will increase your data size), or statistics may not be a requirement at all.
Step 2: Define Constraints and Use-cases
Step 3: Abstract Design
Step 4: Random Issues and Bottlenecks

Step 5: Scaling the design

Algorithm Design:

Useful Links:

No comments:

Post a Comment