1
0
mirror of synced 2026-04-10 10:28:39 +08:00

auto commit

This commit is contained in:
yitter
2021-04-06 22:54:54 +08:00
parent d2e701d89f
commit 39b8016087

View File

@@ -193,7 +193,10 @@ QQ群646049993
🔍 唯一ID生成器依赖WorkerId当业务服务需要水平无差别复制时就要求它能自动注册全局唯一WorkerId然后才能根据它生产唯一ID。
🔍 本算法提供一个开源动态库go语言实现能在容器 k8s或其它容器化集群 环境下,通过 redis 自动注册 WorkerId。
🔍 本算法提供一个开源动态库go语言实现能在容器 k8s或其它容器化集群 环境下,通过 redis 自动注册 WorkerId。
🔍 通过redis注册WorkerId并不是唯一的方法。你也可以自己开发一个配置中心服务各个应用服务启动时通过配置中心获取唯一 WorkerId。
动态库下载链接https://gitee.com/yitter/idgenerator/attach_files/662372/download/regworkerid_lib_v1.0.zip
@@ -213,13 +216,6 @@ extern __declspec(dllexport) void UnRegister();
extern __declspec(dllexport) GoInt32 Validate(GoInt32 workerId);
```
redis作用
🔎 在集成“自动注册WorkerId”功能时用于注册 WorkerId ,不用于生产 ID。
🔎 通过redis注册WorkerId并不是唯一的方法。你也可以自己开发一个配置中心服务各个应用终端通过配置中心获取唯一WorkerId。
## 💎 已实现的语言
| 语言 | github | gitee |