Replaying Events #881
Unanswered
FinalFortune
asked this question in
Q&A
Replies: 1 comment
-
Hi @FinalFortune if you domains are isolated, moving them to separate persistence stores seems like a good solution or did you figure something else. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to replay my events until a certain point in time, after reading through the code and 1 or 2 other posts I came to the following solution:
IReadModelPopulator
to purge all the read modelsIEventStore
to load and select eventsIReadStoreManager
Is this all that is necessary to set the program state to a certain point in time? what about the aggregate store, would I need to change that somehow?
My second problem is while my services use a single EventStore service to track their aggregates, each service is almost entirely isolated and register only the domain classes necessary to the respective service. So when I call
LoadAllEvents
on theIEventStore
it tries to deserialize unknown events, but I don't see a way to load the relative events without loading all then filtering them.Any workarounds for this? Perhaps it's best to add a method to IEventStore which will not throw an exception or not deserialize events that aren't registered?
Beta Was this translation helpful? Give feedback.
All reactions