Stream Demo

Real validation engine · no Kafka · no database writes

not connected

ContractGate throughput

0ev/s

0 forwarded

Overhead vs baseline

%

µs · validation cost (p99)

Producer

0ev/s

0 sent

Elapsed

0.0s

Throughput — events / sec

Waiting for data…

ContractGate validatorgenerate → validate → forward

Rate

0ev/s

Consumed

0

Forwarded

0

p50

0 µs

p95

0 µs

p99

0 µs

max

0 µs

Straight-copy baselinegenerate → serialize only (no validation)

Rate

0ev/s

Consumed

0

Forwarded

0

p50

0 µs

p95

0 µs

p99

0 µs

max

0 µs

passthrough — no checks
How it works: Both lanes run in-process inside the Rust server — no Kafka, no database. The ContractGate lane calls the real semantic validation engine on every event. The copy lane does a serde round-trip only (no validation). The latency delta between them is the exact cost of semantic validation. The full Kafka-backed demo (cargo demo) adds real queue depth and network overhead on top.