Case study / 2026

ReplayGuard Core

A deterministic matching engine that records orders in a journal and checks that replay reconstructs the original state.

My contribution
I built a C++20 matching engine that persists its order journal and checks recovered state after replay.
Verification
The recovery test compares the original and replayed state hashes. The linked CI run passed on Linux and Windows.
A paper journal feeds a mechanical wheel and produces two matching charts.
Illustration of rebuilding the same order book from its journal.

Rebuild state after an interruption

I built a C++20 matching and replay engine around an append-only binary journal. The recovery command rebuilds engine state from a recorded session. A state hash gives me a way to compare the recovered session with the original.

Test replay, ordering and risk limits

The regression suite compares the recovered and original state hashes and checks that repeated runs agree. It also exercises sequence-gap detection, out-of-order message rejection and pre-trade risk limits. The public CI run built and tested the engine on Linux and Windows.

Make the benchmark repeatable

The release candidate runs as a local CLI. Its benchmark generates a synthetic event stream from a fixed seed, warms up the engine and records throughput and tail latency over repeated runs.

Related workQuant Trade Simulator