ARCHOS 525 BLUEPRINT · /d/dgm_matching-engine
Exchange Matching Engine (Price-Time L3 Book & Aeron Journal)
6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[](https://archos.sageideas.dev/d/dgm_matching-engine) *Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_matching-engine)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_matching-engine" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Exchange Matching Engine (Price-Time L3 Book & Aeron Journal) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
client_0["Order Gateways"]
n1_1[("Sequencer Ingress")]
n2a_2[("L3 Order Book Core")]
n2b_3["Trade & Market Out"]
n3_4[("Journal & Snapshot")]
downstream_5["Downstream & OTel"]
client_0 -->|"1. Read seq · UDP"| n1_1
n1_1 -->|"2a. Match L3 · RAM"| n2a_2
n1_1 -.->|"2b. Emit fill · UDP"| n2b_3
n2a_2 -->|"3a. Snap book · NVMe"| n3_4
n2b_3 -->|"3b. Apply · Async"| n3_4
n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5COMPONENT STACK (6)
- Order GatewaysSTATELESSSequenced binary order stream
- Sequencer IngressSTATEFULAeron/Raft deterministic log
- L3 Order Book CoreSTATEFULSingle-thread price-time FIFO
- Trade & Market OutSTATELESSExecution fills + ITCH ticks
- Journal & SnapshotSTATEFULPeriodic snapshots + replay
- Downstream & OTelSTATELESSConsumers, metrics & SLOs
REQUEST & DATA FLOW (6)
- Order Gateways → Sequencer Ingress (Read seq)[UDP]
- Sequencer Ingress → L3 Order Book Core (Match L3)[RAM]
- Sequencer Ingress → Trade & Market Out (Emit fill)[UDP]
- L3 Order Book Core → Journal & Snapshot (Snap book)[NVMe]
- Trade & Market Out → Journal & Snapshot (Apply)[Async]
- Journal & Snapshot → Downstream & OTel (Emit /)[OTLP/API]