![]() How Short URL will redirect to the Long URLĪs soon as our service will receive the short URL it will fetch the corresponding long or original URL for that short URL. List Short URL – See all Short URLs for a particular user.GET URL – This API will redirect to the long URL given a short URL.Delete Short URL – This API will be used to delete a short URL that was created earlier.Create short URL – This API will create a short URL given a long URL.API Detailsīelow will be the API that will be needed in the system Here is one example of a short URL that has 7 characters as part of the short string. It should only have characters that are URL safe.What a short URL should look like? Before we look at the requirements, let’s look at a sample example URL. There should be no single point of failure.What it means is that once a short URL is generated for a given long URL then the system should be able to return that long URL given the short URL in the next immediate call. The system should be strongly consistent.Here are some of the non-functional requirements We are also going to consider the case where a short URL never expires later in this tutorial.After that, the shortened URL will expire ![]() There should be an expiration time with each of the URLs.Once the shortened URL is clicked it should be able to redirect the user to the actual URL.You should be able to generate the short URL of fixed length irrespective of the length of the input URL.Let’s note down the functional requirement of the system It will always be of fixed length irrespective of the length of the input URL. Notice the second part of the URL in bit.ly. The short URL will not be dependent upon the length of the actual URL. The URL shortening service is used to shorten a long URL. Is not KGS service a single point of failure?.What happens if the key ranges are getting exhausted.How Short URL will redirect to the Long URL.
0 Comments
Leave a Reply. |