Skip to main content
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
[![Exchange Matching Engine (Price-Time L3 Book & Aeron Journal) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_matching-engine/opengraph-image)](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_5

COMPONENT STACK (6)

  • Order GatewaysSTATELESS
    Sequenced binary order stream
  • Sequencer IngressSTATEFUL
    Aeron/Raft deterministic log
  • L3 Order Book CoreSTATEFUL
    Single-thread price-time FIFO
  • Trade & Market OutSTATELESS
    Execution fills + ITCH ticks
  • Journal & SnapshotSTATEFUL
    Periodic snapshots + replay
  • Downstream & OTelSTATELESS
    Consumers, metrics & SLOs

REQUEST & DATA FLOW (6)

  1. Order Gateways → Sequencer Ingress (Read seq)[UDP]
  2. Sequencer Ingress → L3 Order Book Core (Match L3)[RAM]
  3. Sequencer Ingress → Trade & Market Out (Emit fill)[UDP]
  4. L3 Order Book Core → Journal & Snapshot (Snap book)[NVMe]
  5. Trade & Market Out → Journal & Snapshot (Apply)[Async]
  6. Journal & Snapshot → Downstream & OTel (Emit /)[OTLP/API]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →