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 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:
Use IReadModelPopulator to purge all the read models
Use IEventStore to load and select events
Apply these events using IReadStoreManager
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 the IEventStore 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?
Activity
rasmus commentedon Jun 17, 2021
Hi @FinalFortune if you domains are isolated, moving them to separate persistence stores seems like a good solution or did you figure something else.