Show HN: High-Performance Order Matching Engine in C++20 (2.2M ops/SEC)
kpiyush8826 Saturday, December 13, 2025I built this to explore low-latency C++ patterns.
It uses a sharded architecture (one thread per symbol group) to avoid mutex contention during matching. Recently moved to int64_t fixed-point pricing and added memory compaction to prevent leaks in long-running processes.
Summary
This article describes the implementation of a cryptocurrency order matching engine, a core component of decentralized exchanges. It covers the order book data structure, order matching algorithms, and the overall system architecture, providing a technical overview of the order execution process.
2
0
Summary
github.com