Get all events since event with 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)?
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.