394 B
394 B
Snowflake UID Service
- (0..41] bits for .01s since $EPOCH (697y span)
- (41..54] bits for sequence (4096)
- (54..64] bits for hostid (1024 hosts)
for up to 419_430_400 = 1024*100*4096 ids per second
Original
- source: https://github.com/twitter-archive/snowflake/tree/snowflake-2010
- tldr
- [0..41] bits for timestamp
- (41..x] bits for hostid
- (x..64) bits for sequence