Skip to main content

Module saga

Module saga 

Source
Expand description

Saga / Process Manager pattern.

A Saga reacts to domain events and dispatches commands to drive a long-running business process across multiple aggregates. State is keyed by a correlation id derived from each event.

Structs§

InMemorySagaStateStore
Reference in-memory implementation. Survives runner restarts within the same process; loses everything on process restart.
JournalSagaStateStore
Journal-backed saga state store.
SagaHandles
Handles handed back after Topology::materialize.
SagaPattern
Public, zero-sized handle for the saga pattern.
SagaTopology
Materializable description of a saga.

Enums§

SagaAction
What a saga decides to do in response to an event.

Traits§

Saga
User-defined saga / process manager.
SagaStateStore
Per-correlation state storage. Saga state is opaque (Vec<u8>) at this layer; the saga supplies the codec via crate::saga::Saga::encode_state / crate::saga::Saga::decode_state.