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. |
0 replies
注册 for free
to join this conversation on GitHub.
Already have an account?
登录 to comment
Uh oh!
There was an error while loading. Please reload this page.
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:
IReadModelPopulatorto purge all the read modelsIEventStoreto load and select eventsIReadStoreManagerIs 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
LoadAllEventson theIEventStoreit 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?
All reactions