Skip to content
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

Another Disruptor #472

Open
hl845740757 opened this issue Jan 21, 2024 · 0 comments
Open

Another Disruptor #472

hl845740757 opened this issue Jan 21, 2024 · 0 comments

Comments

@hl845740757
Copy link

I implemented my own version of Disruptor with some design improvements.

  1. I separated the wait strategy from the blocking wait => SequenceBlocker.
  2. Allow consumers to use different waiting strategies.
  3. Both producers and consumers use SequenceBarrier for coordination => ProducerBarrier + ConsumerBarrier.
  4. Dependencies are based on barriers, not sequences.
  5. Invert the sequence dependency between barrier and EventProcessor => ConsumerBarrier + ConsumerGroup + EventProcessor.

These ideas may be useful to you. Disruptor2
MyDisruptor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant