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

Always update the projections position #125

Closed
hvanoch opened this issue Jan 23, 2018 · 0 comments
Closed

Always update the projections position #125

hvanoch opened this issue Jan 23, 2018 · 0 comments
Assignees
Labels

Comments

@hvanoch
Copy link

hvanoch commented Jan 23, 2018

Now the projection position is only updated when it actually has an event.
That means when stopping the projection and running it again, all events will be fetched from previous position to "now".

The real reason I want this to be updated is so I can update the read model synchronised, and not async with the write model.
I created a plugin that when ever a write happens (event store "appendTo" or "create" event) waits and poll for the position to be the same as the key from last event created. That way I know that the projection has the current state applied of these newly created events.

As you see, if the position is never updated for projections where the event was never used for it hangs.

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

No branches or pull requests

2 participants