AI infrastructure

Inference belongs in the event path.

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

DJL + ONNX, MLflow governance, provenance, and destination delivery in one runtime.

The commercial differentiator is the AI path: model-aware operational movement without splitting every record across separate services and audit systems.

  • Inline ONNX inference before delivery.
  • MLflow registry support for live promotion, health checks, automated rollback, and blocked re-promotion evidence.
  • Model/version provenance on enriched output.
  • Kafka, MongoDB Vector, Postgres, PostgreSQL pgvector, Delta Lake, Snowflake, and custom sink paths.
  • OpenTelemetry source intake and local MCP tools for operational AI review.
In-process AI enrichment path
StreamKernel JVM Events Kafka / OTel Policy fail closed ONNX DJL inference model labels Destinations Kafka, MongoDB pgvector, Delta MLflow registry

AI use cases

Operational enrichment paths the website should make easy to understand.

Kafka -> ONNX -> Kafka

Enrich events inline and republish without a sidecar model-serving hop.

Kafka -> ONNX -> MongoDB Vector

Generate embeddings and insert vector records from the same pipeline boundary.

Kafka -> ONNX -> PostgreSQL pgvector

Score or embed records in-process and write vector-ready rows to PostgreSQL pgvector targets.

Any source -> ONNX -> Postgres

Deliver scored records from Kafka, Pulsar, REST, or custom sources into a relational store.

Pulsar -> ONNX -> Delta Lake

Run transport-agnostic AI enrichment into a lakehouse destination.

MLflow -> Delta Lake

Bootstrap model artifacts from the registry and write enriched records.

Live model swap

Promote MLflow models during a run, observe health, and fall back automatically when a fresh version degrades.

OpenTelemetry -> policy -> sink

Accept OTLP logs, metrics, or traces and send them through the same policy, redaction, enrichment, and DLQ path.

MCP agent control

Expose local agent-readable status, config validation, dependency health, benchmark summaries, and guarded model lifecycle tools.

Vertical inference

The inference types buyers recognize before they care about the pipeline.

The same in-process ONNX path can serve fraud scoring, anomaly scoring, and embedding generation without sending records through an external model hop.

Fraud scoring

Transaction events can receive model scores before they leave the systems that hold them.

Anomaly scoring

Event streams can be scored by a local model in-process.

Embedding generation

Operational records can be converted into vector-search-ready output for MongoDB Vector or PostgreSQL pgvector.

Inference provenance

Inference requests can carry model identity, input and output hashes, route decisions, and audit fingerprints.

Agent tool governance

Agent tool calls can be normalized, scored, routed, and audited before they affect enterprise systems.

Where inference has run

The same model path on CPU, Apple GPU, and NVIDIA GPU.

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.
  • Apple machine: Apple M5 Pro (Mac17,9, 18 cores, 24 GB). ONNX Runtime 1.30.0 with its CoreML provider, Java 25. September 16, 2026.
  • AWS machine: AWS g5.8xlarge: one NVIDIA A10G, driver 595.91.07, 32 logical CPUs. Ubuntu 24.04, CUDA 12.9, cuDNN 9.10, TensorRT 10.14.1.48, ONNX Runtime 1.30.0, Java 25. October 3 to 5, 2026.
  • Model on AWS: MiniLM-L6-v2 sentence embeddings, FP32, batch 8, sequence length 128, with TF32 and FP16 off.

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

Evidence for the AI path starts with published local baselines.

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 Current

Kafka 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 range

Kafka 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 Current

Kafka 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 range

MongoDB 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 run

MiniLM-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. Current

Commercial path

Review the AI enrichment path against your models and destinations.

Bring the event source, model governance requirements, destination path, and audit expectations.