Closed dorner closed 7 months ago
Wiki page has been added: https://github.com/rubyforgood/human-essentials/wiki/Event-Sourcing
cc: @awwaiid @cielf @scooter-dangle Please let me know if there are any comments or questions.
@dorner What might cause an error in the rerunning of the events?
Really the only thing that should be possible is if business logic changed in between when the event first was created and now. Assuming we are not allowing "bad" events to be added live (which is what the events_read flag does), there theoretically shouldn't be a case where an event worked and then stopped working.
Of course there's plenty of "unknown unknowns" when it comes to errors 😁
What constitutes a "bad" event?
One that shouldn't be let through - usually because there isn't enough inventory to process it.
Summary
Protect against the bus factor by documenting how event sourcing works (as well as comparing what happens with and without the flag).
Things to consider
No response
Criteria for Completion
No response