Low-latency messaging for trading systems, written in Rust.
Karyos is a brokerless transport designed for shared-memory IPC between processes, reliable UDP unicast and multicast, Archive with deterministic replay, and Raft Cluster. Correctness under pauses, crashes and concurrent writers is designed first.
Today: publish and subscribe in one process, on Linux and macOS. Separate processes, UDP, Archive and Cluster are planned.
Karyos in four minutes
What Karyos is, how it moves messages and where it stands today: 0.1.0-alpha.1, an early alpha for evaluation.
Built on three principles
Latency first
Designed for the tail, not the median: no allocation, locks or logging on the data path.
Determinism
Designed for replay: the same inputs produce the same outputs, in production and in tests.
Observability
Designed for per-message, hop-by-hop tracing that records the uncertainty of each clock.
Built for trading infrastructure
Market data
Distribution and A/B feed arbitration.
Order flow
Between strategies, gateways and risk.
Replicated services
Sequencers, order management and replicated risk limits.
Incident reproduction
Replay a session to reproduce a problem or compare strategies.
Seven integrated capabilities
Each capability shows how far it has come. Most are designed and not built yet.
- Keyed conflation (as a library in the alpha)Maturity: Implemented
- Redundant path arbitration (A/B)Maturity: Designed
- Per-message latency tracingMaturity: Designed
- Priority lanesMaturity: Designed
- Replicated kill switch and rate limitsMaturity: Designed
- Timed transmissionMaturity: Designed
- Deterministic multi-stream replay with diffMaturity: Designed
Correctness first
Correctness under pauses, crashes and concurrent writers is checked with model checking, Miri and a deterministic simulator. unsafe code is confined to the two lowest crates, and the default build compiles no C.
The core is free and open source
Karyos core is licensed under Apache-2.0. QuantStratum offers production support, integration, performance optimisation, long-term maintenance, training and managed operation.