Readonly
decideReadonly
evolveReadonly
fetchFetch events
list of Events with Version and Event Metadata
Readonly
handleHandles the command of type C
, and returns new persisted list of pairs of event and its version.
list of persisted events with Version and Event Metadata
Readonly
initialReadonly
reactReadonly
saveSave events
a list of newly saved Event(s) of type E
with Version of type V
and with Event Metadata of type EM
Readonly
versionGet the latest event stream version / sequence
the latest version / sequence of the event stream that this event belongs to.
Generated using TypeDoc
Event sourcing orchestrating aggregate interface is using/delegating a
decider
of typeIDecider
<C
,S
,E
> to handle commands and produce events. In order to handle the command, aggregate needs to fetch the current state (represented as a list of events) viaIEventRepository.fetchEvents
function, and then delegate the command to thedecider
which can produce new event(s) as a result.If the
decider
is combined out of many deciders viacombine
function, an optionalEventSourcingOrchestratingAggregate.saga
could be used to react on new events and send new commands to thedecider
recursively, in one transaction.Produced events are then stored via
IEventRepository.save
function.Author
Иван Дугалић / Ivan Dugalic /
Idugalic