Comments (4)
IIdGenerator idGen = new DefaultIdGenerator(options);
这个步骤只能全局一次。
你执行了2次。
from idgenerator.
两个线程分开执行的,模拟程序部署在两台服务器上
from idgenerator.
是你的代码有问题,多线程模式下同时访问一个Queue和Dictionary对象是有问题的。
生成ID相同不会相同。
from idgenerator.
哦,用错队列了 ,谢谢
from idgenerator.
Related Issues (20)
- C# 版的SnowWorkerM1.cs文件第109行-第116行是个BUG吗? HOT 5
- SOSO:5个并发的情况下出现重复数据 HOT 3
- Maybe better to upload to Pypi / npm? HOT 1
- 1
- 如何指定生成单号的长度 HOT 1
- PHP 扩展 phpize 后报 warning 错误 HOT 11
- 请问有lua版本的吗? HOT 1
- NextId有重复 HOT 1
- I'm sorry I'm asking this question here HOT 6
- php 版本的扩展能否提供ts版本
- 分布式可否提升性能 HOT 3
- 请问第二版有计划了吗 HOT 3
- 这是一个无效代码吧 HOT 1
- 可以根据生成的id解析出时间等信息吗? HOT 3
- 单服务多线程下生成的Id重复 HOT 1
- 单线程性能很慢 HOT 2
- Go/regworkerid/regworkerid/reghelper.go 无法连接哨兵模式的redis HOT 1
- 生成的雪花ID长度不一样 HOT 3
- IIS下,多个工作进程,ID重复该如何解决 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from idgenerator.