top | item 37106539

(no title)

HarshitDoshi | 2 years ago

How are the unique IDs created? And how do you manage collisions with such small IDs? I am not sure but I think the collision rate should somewhere be around "~1 day or 33K IDs needed, in order to have a 1% probability of at least one collision." as per https://zelark.github.io/nano-id-cc/ with an alphabet that goes like this "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" and an ID length of 6 characters.

I have been looking for such a URL shortening solution for a client of mine and hop2 looks perfect with its minimal dashboard and simple usage. I am currently using a manual combination of Google Analytics and Bit.ly but it doesn't really work as I would. I have even tried building a URL shortener for this particular use-case and while I did succeed, adding analytics feels like a big task and an entirely seperate project of its own.

discuss

order

No comments yet.