Back to Browse

Tiny Url Shortener | HLD | System Design Interview Question and Answer | Code Decode

9.0K views
Feb 16, 2023
34:41

In this video of code decode we have explained System Design Interview Question URL Shortner. Udemy Course of Code Decode on Microservice k8s AWS CICD link: https://openinapp.co/udemycourse Course Description Video : https://yt.openinapp.co/dmjvd Next Level App Download link : https://next-level.onelink.me/vJGp/r0hcje4c Design a system similar to ShortUrl / Tiny url These URL shortening service is a service that produces short aliases for long URLs, commonly referred to as short links. Upon clicking, these short links direct to the original URLs. Requirement gathering The first step: To decide functional and non-functional requirements. Functional - Primary requirement - Our service should be able to create a special, shorter alias of the provided URL. Redirection: Our system should be able to route users to the original URL given a short link. Removal: If given the proper permissions, users should be able to remove a short link produced by our system. Users should have the right permissions to update the long URL that is linked to the short link. Expiration time: The short links must have a default expiration time, but users should be able to customise the expiration time to suit their needs. Components we will use to design the system DB: It will be necessary to store the mapping between long URLs and their equivalent short URLs in a database. Server - where we will deploy our application Sequencer : Each short URL will be generated using a unique ID that the sequencer will supply. Load balancer : A seamless distribution of requests among the available servers will be made possible by load balancers at different layers. Cache: The most common requests linked to short URLs will be stored in caches. Rate Limiter - We'll implement rate limiters to prevent system abuse. CRUD APIs C - Create Short URL - ©- and map that to long original one. We will also have a piece of code to generate short url with unique id that will be mapped to long id. R - Map Short url with Long url used for redirection (Get api which will fetch long url against a shorter one) U - Update long url against a given short URL D - Delete a short url Logic to create unique readable short URL for customers Most of the sites providing this service uses 2 main components - Sequencer - To generate unique 64 bit numeric ID Encoder to make it readable for customers Most Asked Core Java Interview Questions and Answers: https://youtube.com/playlist?list=PLyHJZXNdCXscoyL5XEZoHHZ86_6h3GWE1 Advance Java Interview Questions and Answers: https://youtube.com/playlist?list=PLyHJZXNdCXsexOO1VQ4vs-BM2-8CKrixd Java 8 Interview Questions and Answers: https://youtube.com/playlist?list=PLyHJZXNdCXsdeusn4OM33415DCMQ6sUKy Hibernate Interview Questions and Answers: https://youtube.com/playlist?list=PLyHJZXNdCXsdC-p2186C6NO4FpadnCC_q Spring Boot Interview Questions and Answers: https://youtube.com/playlist?list=PLyHJZXNdCXsexOO1VQ4vs-BM2-8CKrixd Angular Playlist: https://www.youtube.com/watch?v=CAl7RQSdq2Q&list=PLyHJZXNdCXsfxRtDwtGkDD_lLfTWc1g0i SQL Playlist: https://www.youtube.com/playlist?list=PLyHJZXNdCXse86eLuwy5uZohd_bddE9Ni GIT: https://youtube.com/playlist?list=PLyHJZXNdCXscpl6pxOnL2lRWJlzvzjyZE Subscriber and Follow Code Decode Subscriber Code Decode: https://www.youtube.com/c/CodeDecode?sub_confirmation=1 LinkedIn : https://www.linkedin.com/in/codedecodeyoutube/ Instagram: https://www.instagram.com/codedecode25/ #systemDesign #HLD #codedecode

Download

0 formats

No download links available.

Tiny Url Shortener | HLD | System Design Interview Question and Answer | Code Decode | NatokHD