Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanqinguo authored Jun 19, 2020
1 parent 16a72fe commit 2368e0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

###### 基于雪花ID算法思想,缩减时间戳41位到38位,即秒级,非毫秒级,2位作为NodeID,即只支持0,1,2, 3三个节点,11位自增ID,即支撑2^11,生成12位数字的ID值

###### 三个节点均部署后,每秒支持生成的ID数为: 2048 * 4
###### 4个节点均部署后,每秒支持生成的ID数为: 2048 * 4

###### 若想每秒生成更多的ID,有两种办法
1. 修改idworker中的位数即可,但生成的ID将会超过12位,或者直接参考标准的雪花算法生成19位的ID
Expand Down

0 comments on commit 2368e0f

Please sign in to comment.