Thanks for the feedback.! This is the purpose of releasing this MVP. To get such feedbacks. About different URLs to same resource, I had the same thought. Initially I used UUID hash, but it’s way too long, in order to ensure all strings or all lengths can be hash deterministically. So I chose short ID, like YouTube video ID.

Reply to this note

Please Login to reply.

Discussion

It is all about the possibility of a collision. If you choose a shorten id, that I think is fine, you can however make it deterministic, ex. simply cutting a SHA-256 hash.

PS: check the birthday paradox.

Of cause. Thus I chose 10 characters. Referencing YouTube video ID uses 11. And also based on how mission critical when collision happens, for a free URL shortener, it should be fine too.

I also think that 10 chars are ok. So why don't simply do an SHA-256 and cut it? :)