1
0
mirror of synced 2025-12-07 21:58:18 +08:00

auto commit

This commit is contained in:
yitter
2021-04-11 09:57:44 +08:00
parent 2eab1cb343
commit f1176b51af

View File

@@ -142,7 +142,7 @@ QQ群646049993
***WorkerIdBitLength***,机器码位长,决定 WorkerId 的最大值,**默认值6**,取值范围 [1, 19],实际上有些语言采用 无符号 ushort(uint16) 类型接收该参数所以最大值是16如果是采用 有符号 short(int16)则最大值为15。
**WorkerId**,机器码,**最重要参数**,无默认值,必须 **全局唯一**,必须由外部设定,缺省条件最大值63理论最大值 2^WorkerIdBitLength-1不同实现语言可能会限定在 65535 或 32767原理同 WorkerIdBitLength 规则)。不同机器或不同应用实例 **不能相同**你可通过应用程序配置该值也可通过调用外部服务获取值。针对自动注册WorkerId需求本算法提供默认实现通过 redis 自动注册 WorkerId 的动态库详见“Tools\AutoRegisterWorkerId”。
**WorkerId**,机器码,**最重要参数**,无默认值,必须 **全局唯一**,必须由外部设定,缺省条件指WorkerIdBitLength取默认值最大值63理论最大值 2^WorkerIdBitLength-1不同实现语言可能会限定在 65535 或 32767原理同 WorkerIdBitLength 规则)。不同机器或不同应用实例 **不能相同**你可通过应用程序配置该值也可通过调用外部服务获取值。针对自动注册WorkerId需求本算法提供默认实现通过 redis 自动注册 WorkerId 的动态库详见“Tools\AutoRegisterWorkerId”。
***SeqBitLength***,序列数位长,**默认值6**,取值范围 [3, 21]建议不小于4决定每毫秒基础生成的 ID 个数。规则要求WorkerIdBitLength + SeqBitLength 不超过 22。