4 ms·
Not saying this is great, and I don't have experience with an ES system in production, but... Could you do one of: 1. Manually remove the specific problem even
by ehsanu1 10y ago
Not saying this is great, and I don't have experience with an ES system in production, but... Could you do one of:
1. Manually remove the specific problem event from the store, then re-run all events starting from the previous accumulated state snapshot stored before that event? Then you get the new state snapshot just by re-processing all the events. This of course assumes you have state snapshots, and may not be feasible if this is a common occurrence and there are too many events to process.
Or:
2. Create a "reverse" event? This will cancel out the bad change and give you a new, valid state to work from and continue. This is nice since the historical state of the system is still represented, but that may be a disadvantage in some situations.
- ouro 10y agomy answer above ^^ assumes we really want to remove it. compensating actions are generally the preferred option