DEV Community

Discussion on: What would you use as a sortable, globally unique, ID?

 
johanneslichtenberger profile image
Johannes Lichtenberger

I thought Snowflake wouldn't require a central server, why would it? Haven't read the stuff now but a few years ago.

As mentioned in the second article it uses a timestamp + nodeID + sequenceID. The sequence-ID might be the same, but the nodeIDs could be anything which identifies the server uniquely I guess. Okay, finding something which is unique with only using qafew bytes, I don't know...

Thread Thread
 
rhymes profile image
rhymes

I thought Snowflake wouldn't require a central server, why would it? Haven't read the stuff now but a few years ago.

I don't know about the latest incarnation, but the one that was public years ago was a server generated with Apache Thrift and used ZooKeeper for coordination. Not exactly practical unless you're Twitter...