Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_stock-exchange

Electronic Stock Exchange (FIX Gateway, Sequencer & Matching Engine)

6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[![Electronic Stock Exchange (FIX Gateway, Sequencer & Matching Engine) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_stock-exchange/opengraph-image)](https://archos.sageideas.dev/d/dgm_stock-exchange)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_stock-exchange)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_stock-exchange" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Electronic Stock Exchange (FIX Gateway, Sequencer & Matching Engine) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0["Broker FIX Clients"]
  n1_1["FIX Order Gateway"]
  n2a_2[("Raft/Aeron Sequencer")]
  n2b_3["Risk & Clearing"]
  n3_4[("Matching Engine")]
  downstream_5["Downstream & OTel"]
  client_0 -->|"1. NewOrder · FIX"| n1_1
  n1_1 -->|"2a. Sequence · UDP"| n2a_2
  n1_1 -.->|"2b. Risk check · IPC"| n2b_3
  n2a_2 -->|"3a. Match fill · SHM"| n3_4
  n2b_3 -->|"3b. Apply · Async"| n3_4
  n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5

COMPONENT STACK (6)

  • Broker FIX ClientsSTATELESS
    Co-located DMA order flow
  • FIX Order GatewaySTATELESS
    Pre-trade risk & wire decode
  • Raft/Aeron SequencerSTATEFUL
    Total order log replication
  • Risk & ClearingSTATELESS
    Margin checks & settlement
  • Matching EngineSTATEFUL
    In-memory L3 limit order book
  • Downstream & OTelSTATELESS
    Consumers, metrics & SLOs

REQUEST & DATA FLOW (6)

  1. Broker FIX Clients → FIX Order Gateway (NewOrder)[FIX]
  2. FIX Order Gateway → Raft/Aeron Sequencer (Sequence)[UDP]
  3. FIX Order Gateway → Risk & Clearing (Risk check)[IPC]
  4. Raft/Aeron Sequencer → Matching Engine (Match fill)[SHM]
  5. Risk & Clearing → Matching Engine (Apply)[Async]
  6. Matching Engine → Downstream & OTel (Emit /)[OTLP/API]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →