Closed hyunbin7303 closed 1 year ago
Use this one for the project for now https://github.com/bolicd/eventstore/blob/1fd6faa1b4751d83e065c3df32c7a4a8b0e5ef7b/Infrastructure/Repositories/IEventStore.cs#L7
It stores all events that occurred in your application which led to the current state.
There is an interface which routes commands to the write model. https://medium.com/digitalfrontiers/the-good-the-bad-and-the-ugly-how-to-choose-an-event-store-f1f2a3b70b2d
Event Sourcing is the persistence mechanism where each state transition for a given entity is represented as a domain event gets persisted to an event database. When the entity state mutates, a new event is produced and saved. When we need to restore the entity state, we read all the events for that entity and apply each event to change the state, reaching the correct final state of the entity when all available events are read and applied.
Todo