3 ms·
Twitter created Snowflake many years ago to generate IDs. Unsure whether it’s still in use. https://blog.twitter.com/engineering/en_us/a/2010/announcing-snowfl
by Dachande663 5y ago
Twitter created Snowflake many years ago to generate IDs. Unsure whether it’s still in use.
https://blog.twitter.com/engineering/en_us/a/2010/announcing-snowflake https://blog.twitter.com/engineering/en_us/a/2010/announcing...
- erwincoumans 5y agoThat sounds nice and simple, and fits in 64 bits (vs 128): "we settled on a composition of: timestamp, worker number and sequence number. Sequence numbers are per-thread and worker numbers are chosen at startup via zookeeper"
- erwincoumans 5y agoTwitter uses strings instead of ints to represent the 64 bit UID, because Javascript only supports 53bit ints instead of 64bit... https://developer.twitter.com/en/docs/twitter-ids https://developer.twitter.com/en/docs/twitter-ids