Module aggregate

Source
Expand description

Aggregate module - belongs to the Application layer - composes pure logic and effects (fetching, storing)

Structs§

EventSourcedAggregate
Event Sourced Aggregate.
EventSourcedOrchestratingAggregate
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 decider is combined out of many deciders via combine function, a saga could be used to react on new events and send new commands to the decider recursively, in single transaction. It is using a EventRepository to fetch the current events and to save the new events. Generic parameters:
StateStoredAggregate
State Stored Aggregate.
StateStoredOrchestratingAggregate
Orchestrating State Stored Aggregate.

Traits§

EventRepository
Event Repository trait
StateRepository
State Repository trait