Eveneum icon indicating copy to clipboard operation
Eveneum copied to clipboard

Batch write is not atomic?

Open norvegec opened this issue 3 years ago • 0 comments

events are split into batches, each batch in a loop is wrapped in transaction and persisted: https://github.com/Eveneum/Eveneum/blob/e353061e1ec59164df38dcf44809784e88ca3872/Eveneum/EventStore.cs#L175

But ~if~ when something goes wrong between batch writes, i.e. host dies, network error, etc. then system would have inconsistent state (some events persisted, some not).

norvegec avatar Mar 03 '21 09:03 norvegec