Mission 04 Low latency & trading Advanced
Inside a trading system
Market data, exchange sessions and the microseconds in between.
How a book is built from a feed, how an exchange session survives a reconnect without firing an order twice, why the tail of latency matters more than the average, what kernel tuning really moves, and how a desk runs the open, the close and an incident with money moving.
Start lesson 1 7 lessons 43 drills About 25 min of reading
- Benchmarking and placement: colocation, same-AZ discovery, and proving where to run You cannot buy a cross-connect in the cloud, so you discover placement: launch many hosts, measure each one's tail to the venue, keep the best few and destroy the rest — then re-run it, because placement decays. 6 drills · 3 min read
- Jitter and the tail: measuring p99.9, finding the interference, and not lying to yourself with averages The tail is the product. Report a percentile at a load and a payload, generate load at a fixed rate so you do not hide your own stalls, and hunt interference in a fixed order: scheduler, interrupts, memory, runtime, power, network. 6 drills · 3 min read
- Kernel tuning for latency: isolcpus, affinity, NUMA, huge pages, and what actually moves the number Latency tuning is interference removal, not speed addition: you are taking the scheduler, the interrupts, the memory manager and the power governor off the critical path, then proving it with percentiles. 7 drills · 5 min read
- NIC path and time: kernel bypass, hardware timestamping, PTP, and why time sync is a correctness problem The kernel network stack is a latency tax you can opt out of, and hardware timestamps plus PTP are the only way to know what your latency actually was — which makes time sync a correctness problem, not a housekeeping one. 6 drills · 3 min read
- Exchange connectivity: sessions, sequence numbers, reconnects, and failover that does not double-fire A venue session is stateful: sequence numbers, heartbeats and a resend protocol. Reconnecting means restoring that state correctly, order entry must be idempotent, and failover must guarantee exactly one active session — the same discipline that stops a validator double-signing. 6 drills · 4 min read
- Market data: multicast feeds, book building, snapshots, and the arithmetic of a busy open A book is a snapshot plus increments applied in sequence order. Feeds are UDP multicast because retransmission is worse than loss, receive-side loss is usually your own buffers, and capacity is sized for the open, not the average. 6 drills · 4 min read
- Trading-day operations: the open, the close, incident response with money moving, and change freezes In a trading incident the first question is not "why" but "what is our position and can we still cancel". Risk first, state truth second, cause last — and nothing risky ships during the session. 6 drills · 3 min read