System Design : PUNYURL Shortener Service Tike TinyURL
URL Shortener service
A URL shortener service creates a short url/aliases/tiny url against a long url. Moreover, when user click on the tiny url, he gets redirected to original url.
Tiny url are exceedingly handy to share through sms/tweets (where there is limit to number of characters that can be messaged/tweeted) and also when they are printed in books/magazines etc.(Less character implies less printing cost). In addition, it is easy and less error prone to type a short url when compared to its longer version.
For e.g. I have created a tiny url to my medium profile using a free short link generation service called tinyrl.com (Try clicking shortened link and also try generating few short urls on your own at
Enter your text heFeatures
There can be myriad of features even in seemingly small service like URL shortening. Hence it’s always a good idea to ask interviewer what features are expected in the service. This will then become the basis for functional requirements.re...
High Level Design
Following is high level design of our URL service. This is a rudimentary design. We will optimise this further as we move along.