Work

Order Matching Engine

projectapr 2026

rust

A real order-matching engine written in Rust.

Stateless API servers push orders into a shared Redis queue; a single matching engine consumes via BRPOP; the in-memory order book uses price-time priority with partial fills.

A WebSocket /ws endpoint streams real-time fills to clients. The split avoids double-matching and race conditions across multiple API instances.