Skip to main content

Module bus

Module bus 

Source
Expand description

Domain Event Bus pattern.

In-process broadcast of domain events to interested subscribers. Typically used between a write-side crate::cqrs::CqrsPattern and downstream readers / sagas / external integrations.

v2 also ships a cluster-wide variant behind the bus-cluster Cargo feature. Configure it via BusBuilder::cluster / BusBuilder::topic / BusBuilder::codec.

Structs§

BusBuilder
BusHandles
Bus handles. Use BusHandles::publish to push events; call BusHandles::subscribe to obtain a fresh receiver.
BusTopology
DomainEventBus
Public handle to the bus pattern.