News for hackers. Stuff that matters.
Re:Building a CQRS/ES web application in Elixir using Phoenix by ehsanu1 on Friday January 06, 2017 @07:41PM (#13341650)
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.

Re:Building a CQRS/ES web application in Elixir using Phoenix by ouro on Friday January 06, 2017 @07:47PM (#13341680)
my answer above ^^ assumes we really want to remove it. compensating actions are generally the preferred option