Expand description
Aggregate module - belongs to the Application layer - composes pure logic and effects (fetching, storing)
Structs§
- Event
Sourced Aggregate - Event Sourced Aggregate.
- Event
Sourced Orchestrating Aggregate - Orchestrating Event Sourced Aggregate.
It is using a Decider and Saga to compute new events based on the current events and the command.
If the
decideris combined out of many deciders viacombinefunction, asagacould be used to react on new events and send new commands to thedeciderrecursively, in single transaction. It is using a EventRepository to fetch the current events and to save the new events. Generic parameters: - State
Stored Aggregate - State Stored Aggregate.
- State
Stored Orchestrating Aggregate - Orchestrating State Stored Aggregate.
Traits§
- Event
Repository - Event Repository trait
- State
Repository - State Repository trait