Available on crate feature
worker-batch and (crate features worker-batch or worker-pool or worker) only.Re-exports§
pub use config::BatchProcessingConfig;pub use config::ParseErrorAction;pub use config::PreRouteFilterConfig;pub use driver::CommitMode;transportpub use driver::ParsedBatch;transportpub use intern::FieldInterner;pub use types::MessageMetadata;pub use types::ParsedMessage;pub use types::PreRouteResult;
Modules§
- config
- driver
transport - Unified
WorkBatchengine driver - intern
- Field name interning for the batch processing engine.
- metrics
- parse
- Parse phase: convert raw bytes into a
sonic_rs::Valueusing SIMD acceleration. This is the most CPU-intensive phase (~1-5 µs per message). - pre_
route - Pre-route phase: extract a routing field from raw JSON bytes using
sonic_rs::get_from_slice(SIMD-accelerated), then apply filters to decide whether the message continues, is dropped, or goes to DLQ. - types
Structs§
- Batch
Engine - Core batch processing engine for DFE pipelines.
Enums§
- Engine
Error transport - Errors returned by the
BatchEngineWorkBatchdrivers (run_workbatch/run_workbatch_parsed). - Filter
DlqPolicy transport - What a
BatchEnginerun loop does with inbound-filter DLQ entries (RecvBatch::dlq_entries).