Expand description
Adapter trait and implementations for durable event storage.
Adapters provide the persistence layer for the event bus. They receive batches of events from the ingestion core and store them durably.
§Adapter Contract
Adapters must:
- Append batches in received order
- Never block ingestion indefinitely
- Fail fast on internal errors
- Be idempotent under retry
- Preserve per-shard FIFO order
- NOT allocate memory per-event (only per-batch or static)
§Available Adapters
NoopAdapter: Discards events (for testing/benchmarking)RedisAdapter: Redis Streams backend (requiresredisfeature)JetStreamAdapter: NATS JetStream backend (requiresjetstreamfeature)NetAdapter: High-performance UDP transport (requiresnetfeature)
Re-exports§
pub use self::net::NetAdapter;pub use self::net::NetAdapterConfig;
Modules§
- net
- Net L0 Transport Protocol (Net) adapter.
Structs§
- Noop
Adapter - No-op adapter that discards all events.
- Persistent
Producer Nonce - Persistent u64 nonce loaded from (or created at) a stable path.
- Shard
Poll Result - Result of polling a single shard.
Traits§
- Adapter
- Adapter trait for durable event storage.