by abahlo · 5y ago · 0 comments
There are more differences (128bit vs 64bit, rng vs time-based), I think they have different use cases.
Other than that, they have 80 bits of randomness, enough to be unique even if millions are generated per second.
I'm curious, if you don't mind my asking. What are you building that requires that amount of scale? These are heavy hitting IDs (but of course you know that).
To be honest for the application I didn't want to expose a database serial (otherwise you'd know you're user #100, for example) or use UUIDs, so it's less about scale and more about obscuring ids. The library is well suited for huge scale scenarios nonetheless.