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

Event delay #14

Closed
charlessolar opened this issue Dec 20, 2016 · 1 comment
Closed

Event delay #14

charlessolar opened this issue Dec 20, 2016 · 1 comment

Comments

@charlessolar
Copy link
Owner

Currently to overcome the event ordering issue I put a 2 second delay between receiving events from ES and processing the event. As explained here: https://github.com/volak/Aggregates.NET/blob/master/src/Aggregates.NET.Consumer/Internal/EventSubscriber.cs#L368

A better solution would be to keep track of streams the client has seen and a rough estimate of the event number I'm expecting then do a delay only if I detect an out of order event and only for the duration it takes for the next event to come.

We'll have to insert some clever algorithm tricks like bloom filters. Won't need to be 100% certain but 99.99 at least

@charlessolar
Copy link
Owner Author

No longer an issue after improving the projection design

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