You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm wondering how replay is done best. My intuition was to take "THE_LAST_EVENT_SEEN"-id from the revisionGuard of my event-denormalizer and read all events from the event store that come after that one.
However, I still didn't find this feature and wonder how this should be done instead... What is the desired way to do this (or am I completely wrong with this thinking)?
The text was updated successfully, but these errors were encountered:
In the projects I've seen so far... for the replay use case (new read model) we/they do replay each event from the beginning.... => getEvents https://github.com/adrai/node-eventstore#query-your-events
and for occasionally missing events => getEventsByRevision
and only for edge cases when denormalizers where down for a longer time... they do get the "THE_LAST_EVENT_SEEN" containing an occurredAt field and use getEventsSince
Thanks for the fast reply... the last point is how I do it currently. However, I quite often had events that occurred at the same time (yes, exactly same time down to milliseconds). Guess I just augment my function so it ignores everything that comes before the last seen event ID.
I'm wondering how replay is done best. My intuition was to take "THE_LAST_EVENT_SEEN"-id from the revisionGuard of my event-denormalizer and read all events from the event store that come after that one.
However, I still didn't find this feature and wonder how this should be done instead... What is the desired way to do this (or am I completely wrong with this thinking)?
The text was updated successfully, but these errors were encountered: