Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

snowflake with golang

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages