append

abstract fun append(eventStream: DomainEventStream): Mono<Void>

Appends a domain event stream to the event store. Ensures transaction consistency and handles version conflicts.

Return

a Mono that completes when the append operation is successful

Parameters

eventStream

the domain event stream to append

Throws

if there's a version conflict

if the aggregate ID already exists

if the request ID is duplicate