Design TinyUrl
Refer the link: https://www.codekarle.com/system-design/TinyUrl-system-design.html https://tianpan.co/notes/63-soft-skills-interview This is one of THE most commonly asked questions for a system design interview. How do you design a URL shortening service? URL shortening is used for creating short aliases for much longer URLs. For example, goo.gl becomes https://developers.googleblog.com/2018/03/transitioning-google-url-shortener.html. How did that happen! Well, let’s have a look. Before designing any system, we need to decide on the most basic requirement. So let’s get to it. Functional Requirements Get short URL from a long URL Redirect to long URL when a user tries to access Short URL Non Functional Requirements Since this service can be used by a lot of companies, it needs to have these two NFRs Very low latency. Very high availability. There are a few things we need to know before we start building this system. What should be the length of the URL? This will depend on th...