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
[](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_5COMPONENT STACK (6)
- Broker FIX ClientsSTATELESSCo-located DMA order flow
- FIX Order GatewaySTATELESSPre-trade risk & wire decode
- Raft/Aeron SequencerSTATEFULTotal order log replication
- Risk & ClearingSTATELESSMargin checks & settlement
- Matching EngineSTATEFULIn-memory L3 limit order book
- Downstream & OTelSTATELESSConsumers, metrics & SLOs
REQUEST & DATA FLOW (6)
- Broker FIX Clients → FIX Order Gateway (NewOrder)[FIX]
- FIX Order Gateway → Raft/Aeron Sequencer (Sequence)[UDP]
- FIX Order Gateway → Risk & Clearing (Risk check)[IPC]
- Raft/Aeron Sequencer → Matching Engine (Match fill)[SHM]
- Risk & Clearing → Matching Engine (Apply)[Async]
- Matching Engine → Downstream & OTel (Emit /)[OTLP/API]