分布式唯一 ID 之 Snowflake 算法

2019-11-04
阅读 10 分钟
11.9k
Snowflake is a service used to generate unique IDs for objects within Twitter (Tweets, Direct Messages, Users, Collections, Lists etc.). These IDs are unique 64-bit unsigned integers, which are based on time, instead of being sequential. The full ID is composed of a timestamp, a worker number, an...