~/talk

How to Simulate a Low Latency Exchange in C++

Talkat C++ on Sea 2023 · 2023-06-28..06-30· [c-and-cpp]
links:none on file
slides:none on file

Concrete recipe for a C++ low‑latency exchange simulator: replay packet captures into a matching engine that implements a central order book with add/modify/delete and trade logic, route orders through an order gateway, publish updates via a feed publisher, and drive everything with an event queue plus delay models for switches, fiber and compute (examples: C++ ~10 microseconds, FPGA ~100 ns, switch ~100 ns, fiber ~1 ns/20 cm). Also model colocation topology, ACK/REJECT semantics, sequencing and market impact.

AI-written summary · about

  1. 0:00Introduction
  2. 0:52Who am I
  3. 1:31What is an Exchange
  4. 2:14Central Order Book
  5. 6:03What is a Trading System
  6. 11:39Landscape
  7. 11:49Goals
  8. 12:17Simulating
  9. 13:01Requirements
  10. 14:04Strategy
  11. 15:34Questions to Consider
  12. 18:07What You Need
  13. 18:45Feed Data
  14. 19:33Order Gateway
  15. 19:58Responses
  16. 20:18Delay Models
  17. 20:48Simulation Loop
  18. 21:33Event Queue
  19. 22:01Priority Queue
  20. 22:43Matching Engine
  21. 24:39Outro
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.