Skip to main content

Module engine

Module engine 

Source
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;transport
pub use driver::ParsedBatch;transport
pub use intern::FieldInterner;
pub use types::MessageMetadata;
pub use types::ParsedMessage;
pub use types::PreRouteResult;

Modules§

config
drivertransport
Unified WorkBatch engine driver
intern
Field name interning for the batch processing engine.
metrics
parse
Parse phase: convert raw bytes into a sonic_rs::Value using 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§

BatchEngine
Core batch processing engine for DFE pipelines.

Enums§

EngineErrortransport
Errors returned by the BatchEngine WorkBatch drivers (run_workbatch / run_workbatch_parsed).
FilterDlqPolicytransport
What a BatchEngine run loop does with inbound-filter DLQ entries (RecvBatch::dlq_entries).