Part 1 of 8 · 1 min read
Why this page comes tenth in Level 13
In this module you will
- Scope an exchange and work out its order rate and latency goals.
- Explain order books, limit and market orders, and market data levels.
- Draw the trading flow, the market data flow and the reporting flow.
- Explain why a modern exchange puts the critical path on one server with a memory-mapped event store.
- Describe determinism, a single sequencer, hot-warm failover and Raft election.
The exchange is the hardest case in this course in one way: the latency goal is in microseconds, so many habits from earlier levels (network calls, queues, databases on the main path) are removed. It reuses event sourcing from the digital wallet (page 9) and the wallet itself for funds checks. It also uses consensus (Level 5) and the single-writer idea behind the log of a message queue (Level 12, page 1). The book used is "System Design Interview, Volume 2" by Alex Xu, the stock exchange chapter. Numbers marked "made up" only show the idea. This page explains design ideas and is not financial advice.