Kafka -> ONNX -> Kafka
Enrich events inline and republish without a sidecar model-serving hop.
AI infrastructure
AI enrichment should not require a sidecar, a model-serving hop, and custom audit glue for every record. StreamKernel keeps ONNX inference, model labels, health-aware promotion and rollback, provenance, and delivery inside the pipeline boundary.
In-process enrichment
The commercial differentiator is the AI path: model-aware operational movement without splitting every record across separate services and audit systems.
AI use cases
Enrich events inline and republish without a sidecar model-serving hop.
Generate embeddings and insert vector records from the same pipeline boundary.
Score or embed records in-process and write vector-ready rows to PostgreSQL pgvector targets.
Deliver scored records from Kafka, Pulsar, REST, or custom sources into a relational store.
Run transport-agnostic AI enrichment into a lakehouse destination.
Bootstrap model artifacts from the registry and write enriched records.
Promote MLflow models during a run, observe health, and fall back automatically when a fresh version degrades.
Accept OTLP logs, metrics, or traces and send them through the same policy, redaction, enrichment, and DLQ path.
Expose local agent-readable status, config validation, dependency health, benchmark summaries, and guarded model lifecycle tools.
Vertical inference
The same in-process ONNX path can serve fraud scoring, anomaly scoring, and embedding generation without sending records through an external model hop.
Transaction events can receive model scores before they leave the systems that hold them.
Event streams can be scored by a local model in-process.
Operational records can be converted into vector-search-ready output for MongoDB Vector or PostgreSQL pgvector.
Inference requests can carry model identity, input and output hashes, route decisions, and audit fingerprints.
Agent tool calls can be normalized, scored, routed, and audited before they affect enterprise systems.
Where inference has run
StreamKernel runs ONNX models inside the pipeline process, and the execution provider is a configuration choice. These are the providers it has completed audited runs on so far, the hardware each ran on, and what each run checked.
| Execution provider | Hardware | What ran | What was checked |
|---|---|---|---|
| CPU (ONNX Runtime) | Apple M5 Pro, and the AWS g5.8xlarge host | Direct inference on both machines. On the AWS host, also inside a serial pipeline and between Kafka topics with policy admission. | The reference: every other provider's output is compared with this one. |
| CoreML (Apple GPU) | Apple M5 Pro | Direct inference with two embedding models, MiniLM-L6-v2 and bge-base-en-v1.5, and a two-hour rate-capped pipeline soak. | Outputs match the CPU reference. Device telemetry shows the GPU working during the CoreML runs. Every record in the soak was accounted for. |
| CUDA (NVIDIA GPU) | AWS g5.8xlarge, one NVIDIA A10G | Direct inference, inside a serial pipeline, and between Kafka topics with policy admission. | Outputs match the CPU reference. A strict CUDA request refuses to start when the GPU is unavailable, and the automatic setting falls back to CPU. |
| TensorRT (NVIDIA GPU) | AWS g5.8xlarge, one NVIDIA A10G | Direct inference only, on default settings, in one session. Not yet run through the pipeline. | Outputs match the CPU reference. In the profiled run the whole model compiled into one TensorRT engine, with no fallback to CUDA or CPU. |
Each row is one model path on one machine. Nothing here is a statement about other NVIDIA GPUs, other models, other precisions, or other input shapes, and governance was switched off in these inference runs: the Kafka runs used policy admission only. This section carries no performance figure. The Apple GPU comparison is on the benchmarks page with its conditions.
AI proof strip
The PRD calls for clear caveats, exact profiles, and reproducible evidence rather than a universal performance promise.
Governed fraud/AML pre-ingest screening
99,102 records/sec Apple M5 Pro · July 30–31, 2026 · 3-run mean · 10-minute runs · range 98,287–99,927 records/sec · CV 0.827% At-least-once; mTLS + Keycloak OIDC; fail-closed OPA; SHA-256 provenance on every record CurrentKafka WireEvent, at-least-once, incompressible payload
481,492–530,433 records/sec observed range Apple M5 Pro · August 24, 2026 · 6 runs · 200-second measured windows · range 481,492–530,433 records/sec (median 507,591) · CV 3.50% 95.9% of a native Kafka producer matched on producer count and flush cadence (six order-balanced pairs, one session) At-least-once, acks=1, 256 KiB producer batches, no governance path Current · cite rangeKafka WireEvent, at-least-once, compressible test payload
2.201M records/sec Apple M5 Pro · July 28, 2026 · 3-run mean · 10-minute runs · range 2.161M–2.241M records/sec · CV 1.833% At-least-once, acks=1, no governance path CurrentKafka WireEvent, exactly-once, incompressible payload
339,150–366,938 records/sec observed range Apple M5 Pro · August 24, 2026 · 4 runs · 200-second measured windows · range 339,150–366,938 records/sec (median 343,946) · CV 3.60% 86.8% of a native transactional Kafka producer on the same commit cadence (four order-balanced pairs, one session) Exactly-once: acks=all, idempotence, one transaction commit per 100,000-record pipeline batch Current · cite rangeMongoDB insert, single node, write concern w:1
563K–615K docs/sec across two runs Apple M5 Pro · July 4 and July 22, 2026 · 2 runs · about 9.7 minutes each · range 563K–615K docs/sec Write concern w:1 against one standalone MongoDB on the same machine; journal acknowledgement not requested Scenario proof runMiniLM-L6-v2 embedding inference on the Apple GPU (CoreML), against CPU
3.34× the CPU embedding rate Apple M5 Pro · September 16, 2026 · 6 order-balanced pairs · 5-minute measured windows · range 3.23–3.45× per pair Local serial closed-loop inference with governance off. No pipeline, sink, or delivery is in the measurement. CurrentCommercial path
Bring the event source, model governance requirements, destination path, and audit expectations.