Available on crate feature
worker-batch and (crate features worker-batch or worker-pool or worker) only.Expand description
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.
Hot path: ~50-100 ns per message.
Enums§
- PreRoute
Extraction - Result of extracting the routing field from raw bytes.
- PreRoute
Filter - Runtime filter derived from
PreRouteFilterConfig. - PreRoute
Outcome - Outcome after applying filters to a pre-route extraction.
Functions§
- apply_
filters - Apply a list of runtime filters to a pre-route extraction result.
- extract_
routing_ field - Extract a routing field from raw JSON bytes using SIMD.
- filters_
from_ config - Convert config-layer filter definitions to runtime filters.