This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
hummingbird
/
idgenerator
Not watched
Unwatch
Watch all
Watch but not notify
2
Star
0
Fork
0
Code
Releases
6
Wiki
Activity
Issues
5
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
auto commit
tags/v1.0.0
yitter
4 years ago
parent
ea40c58294
commit
cbb1b109a3
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
README.md
+ 3
- 0
README.md
View File
@@ -168,7 +168,10 @@ ID示例(基于默认配置):
#### 自动注册WorkerId
唯一ID生成器,依赖WorkerId,当业务服务需要水平自动化复制时,就要求它能自动化注册全局唯一WorkerId,然后各个容器化的无差别部署的业务服务,才能根据它生产唯一ID。
本算法提供一个开源的动态库(go语言实现),能在容器 k8s(或其它容器化集群) 环境下,通过 redis 自动注册 WorkerId。动态库提供的C接口方法有:
```
// 注册一个新的WorkerId
Write
Preview
Loading…
Cancel
Save