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

Ordering across publishers #73

Open
somdoron opened this issue Apr 5, 2021 · 0 comments
Open

Ordering across publishers #73

somdoron opened this issue Apr 5, 2021 · 0 comments

Comments

@somdoron
Copy link
Member

somdoron commented Apr 5, 2021

I think we can achieve semi-ordering across producers using Hybrid Logical Clocks, semi because:

  1. In real-time the events will be ordered by the time they arrive at the consumer (but always ordered per producer).
  2. When synchronizing with history the events would be ordered by the timestamp assigned by each producer - so always order per producer and very close to the order of real-time.

The store should now save the events by topic and timestamp

https://bartoszsypytkowski.com/hybrid-logical-clocks/

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