Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 710 Bytes

README.md

File metadata and controls

19 lines (16 loc) · 710 Bytes

snowflake

32 位秒时间戳 + 17 位自增 + 4 位节点序号 = 53 位

节点位长度取值问题(不借秒的情况下)

节点位 支持节点数 每节点最大秒并发
0 1 2097152
1 2 1048576
2 4 524288
3 8 262144
4 16 131072
5 32 65536
6 64 32768
7 128 16384
8 256 8192
9 512 4096
10 1024 2048