educative.io

Why having the same shortened URL is the problem?

in section 6 - “Basic System Design and Algorithm” you mentioned that:

If multiple users enter the same URL, they can get the same shortened URL, which is not acceptable.

But why this is not acceptable? It is not a security service but a convenience service. What is a big deal in having the same short url for the same long url regardless of who created this?

2 Likes

Thank you for your posting your query. The author of this course will soon get back to you.

Hi Viacheslav,

There can be a lot of things that the creator would like to do with their short URL e.g., counting how many people clicked a short URL or ad campaign managements like I will create two short URLs and share them in separate ads for Google and Facebook to see how different Ads are behaving.

Hope this answers your question.

6 Likes