There will be lots of redirection requests compared to new URL shortenings. Our service should also be accessible through REST APIs by other services.Analytics e.g., how many times a redirection happened?.Shortened links should not be guessable (not predictable).URL redirection should happen in real-time with minimal latency.This is required because, if our service is down, all the URL redirections will start failing. The system should be highly available.Users should be able to specify the expiration time. Links will expire after a standard default timespan.Users should optionally be able to pick a custom short link for their URL.When users access a short link, our service should redirect them to the original link. This link should be short enough to be easily copied and pasted into applications. Given a URL, our service should generate a shorter and unique alias of it.Our URL shortening system should meet the following requirements: Be sure to ask questions to find the exact scope of the system that the interviewer has in mind. □ You should always clarify requirements at the beginning of the interview. This will help you a lot in understanding this chapter. If you haven’t used before, please try creating a new shortened URL and spend some time going through the various options their service offers. URL shortening is used to optimize links across devices, track individual links to analyze audience, measure ad campaigns' performance, or hide affiliated original URLs. The shortened URL is nearly one-third the size of the actual URL. Additionally, users are less likely to mistype shorter URLs.įor example, if we shorten the following URL through TinyURL: Short links save a lot of space when displayed, printed, messaged, or tweeted. We call these shortened aliases “short links.” Users are redirected to the original URL when they hit these short links. URL shortening is used to create shorter aliases for long URLs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |