4 ms·
They don't mention a datacenter id in the docs, but I wouldn't be surprised if it's changed since the docs were written: https://developer.twitter.com/en/docs/t
by twodave 6y ago
They don't mention a datacenter id in the docs, but I wouldn't be surprised if it's changed since the docs were written: https://developer.twitter.com/en/docs/twitter-ids https://developer.twitter.com/en/docs/twitter-ids
I implemented a .NET port of Snowflake where I work--being able to work with data without ever having to worry about an identity column is extremely freeing.
- karlding 6y agoThe Data Center ID has been in Snowflake IDs for a while. It's present in the original version of Snowflake that Twitter open sourced back in 2010 [0]. Looks like it was added in this commit [1] from August 2010. [0] https://github.com/twitter-archive/snowflake/blob/snowflake-2010/src/main/scala/com/twitter/service/snowflake/IdWorker.scala#L92 https://github.com/twitter-archive/snowflake/blob/snowflake-... [1] https://github.com/twitter-archive/snowflake/commit/ba2e67ea1cc3321bc57ab4fa013800df96d30f44#diff-a8e6c5c455239de42d57b7230c4657ab46740c301b89c4aece2496f05b609dcf https://github.com/twitter-archive/snowflake/commit/ba2e67ea...