Re:2^120 Ways to Ensure Unique Identifiers
by jimktrains2 on Thursday February 12, 2015 @01:35AM
(#9037731)
I love snowflakes:)
I wrote a little rust implementation[1] also
I wrote a little rust implementation[1] also
Being able to store keys as 64bit integers is much easier to work with, and also much more efficient than b64 encoding. In the odd case you're working with a language that can't handle numbers (ahem… javascript), you can always encode it as a string.
Here's a library that implements this method: https://github.com/Fubelly/rubyflake