ThreeDotsLabs / esja

Event Sourcing library in Go.
MIT License
19 stars 4 forks source link

Idea: Add validation to `NewEventsQueueFromEvents` #4

Open maclav3 opened 1 year ago

maclav3 commented 1 year ago

https://github.com/ThreeDotsLabs/esja/pull/1#discussion_r1040072232

We could validate that the aggregate versions connected to the events check out.

On the other hand, maybe we should trust the event store even if the versions don't seem to match?

Let's discuss