Expand description
Transactional Outbox pattern.
Tail-follows the atomr_persistence_query::ReadJournal and
re-emits events into a publish callback, persisting the offset so
restarts don’t double-publish. Use this when you have a side-effect
(e.g. publishing to Kafka, hitting a webhook) that must occur
“at-least-once after every successful aggregate write.”
Structs§
- InMemory
Offset Store - In-memory offset store — useful for tests. State is kept in a
Mutex<HashMap>; survives restarts of the publisher loop, but not process restarts. - Journal
Offset Store - Durable offset store backed by any
Journalbackend. - Outbox
Builder - Outbox
Handles - Outbox
Pattern - Public, zero-sized handle to the outbox pattern.
- Outbox
Topology
Traits§
- Outbox
Offset Store - Pluggable per-pid offset persistence.
load/savereturn offsets keyed by persistence_id.