-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A service creates multiple Disruptors #452
Comments
Translations (courtesy of google translate): |
@Palmr Looking forward to your help |
@wangshilong1996 there should be no issues creating multiple instances of the Disruptor in once service. From your code examples I could imagine a game server? In that case you may indeed want different queues per-game so that activity in one game does not affect the latency of another. Hopefully that answers the question. An aside: I see you're using |
@Palmr During my testing, 6000 connections were tested, and I found that multiple instances had lost events, while one instance did not. |
因为事件太多,环形缓冲区被覆盖了,解决方案就是自己每次加入环形缓冲区的事后,判断下环形缓冲区还有没有空位,没有的话就先放到自定义的无限制队列里。 |
Desktop (please complete the following information):
Additional context
Can I use Disruptor like this, and use new multiple instances in one service
The text was updated successfully, but these errors were encountered: