![]() This video provides a step by step, simple and easy to understand solution for Leetcode Two Sum problem. All the user requests land on the load balancer and the load balancer is responsible for re-routing these requests to a specific server instance. It details the fundamental concepts of System Design and provides links to relevant resources to help you gain a deeper understanding. The load balancer also acts as a single point of contact for all our users, they don't have to know the individual server IP addresses of our sever instances. At the beginning of the year, we published a guide to System Design in 2023 to help you navigate the world of System Design. There are various kinds of load balancers, each type having its own logic on how to distribute the load, but for our use case lets keep this simple by assuming the load balancer redirects the requests depending on which server is free or available to process the request. Load balancer as the name suggests, balances the load by distributing the requests across our servers. We need to have an intermediate component which interprets the requests and re-directs them to specific server instance using some of kind of a logic. This is a valid point, we just cannot have multiple servers and expose them as end points to users. You might be wondering looking at the above diagram, when there are n server instances, how does the system know which server has to handle which request. As a result shortened URLs produce better social engagement. People tend to trust short URLs as compared to longer ones, especially when the long URL contains special characters. Social campaigns with shorter URLs perform better. Most URL shortner services usually provides us with additional metrics on the shortened URL like number of clicks etc, which can be extremely useful for business insights. Shortened URLs can also be used for tracking purposes. Short URLs in such a case can be used as a placeholder. Lets apply the above guidelines to design a few systems that are asked in SDIs. Some URLs are just too long and it is better off having a shortened version to represent them. ![]() Short URLs in such a case do the job of masking the original URL while preserving the destination address. Sometimes you would not want to expose the original URL as is to the end users. ![]() Shortened URLs are useful on services that have a restriction on number of characters that can be posted on them. Short URLs look clean when they are placed on websites, files, social media etc. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |