Designing a URL Shortening service

This is one of the basic question for interviews. Let’s design a URL shortening service. This service will provide short aliases redirecting to long URLs. Similar services: TinyURL., bit.ly, ow.ly (hootsuite.com), short.io, 1. What is the purpose of URL...