...

/

Aggregate Repositories and Event Stores

Aggregate Repositories and Event Stores

Learn about a registry for recallable data structures and understand how it's implemented.

Because we will be dealing with aggregates that, regardless of their structure, will be decomposed down to a stream of events, we can create and reuse a single repository and store.

AggregateRepository and related interfaces

Let us look at AggregateRepository and the interfaces involved in the following figure:

Press + to interact
AggregateRepository and related interfaces
AggregateRepository and related interfaces

The Load() and Save() methods are the only methods we will use with event-sourced aggregates and their event streams. There are occasions when we would need to delete or alter events in the event store for reasons related to privacy ...