1
0
mirror of synced 2026-10-24 23:46:11 +08:00
This commit is contained in:
zhouzj
2021-03-11 18:35:44 +08:00
parent feb28fd717
commit 37bc257b97

View File

@@ -51,11 +51,11 @@
3.不想将Long型转String给前端用的项目。(如果前端支持bigint,则不用考虑此项)
## 分布式环境使用方法
## 分布式环境使用建议
1.可扩大 WorkerIdBitLength 到最多20位,支持 1,048,576 个节点,且不影响上述并发性能(50W/0.1s)。
2.采用中心化 IdGenerator集群,给节点生成可用 Id 列表,存入 Redis 队列供节点消费。此时64个中心化节点数足够大型互联网项目使用。
2.采用中心化 IdGenerator 集群,给节点生成可用 Id 列表,存入 Redis 队列供节点消费。此时64个中心化节点数足够大型互联网项目使用。
## 使用方法