Building Scalable Low Latency Messaging Platform
summary
Rebuild of an equities order platform replaces a single-threaded OMS with an eventbus/command pattern and sharded sequencers that assign global IDs, journal and replicate on separate threads, and scale by instrument; production stack uses Aeron over UDP multicast, Java with SBE copy-free encoding, off-heap buffers and object pools, Solarflare kernel-bypass NICs, and PTP time sync ~50 ns. A replay server rehydrates consumers out-of-band so sequencers stay live; tests show sequencer latencies in the low microseconds and 99.99th-percentile events around tens of microseconds.
AI-written summary · about
chapters (13)
- 0:00Introduction and speaker background
- 1:13Business requirements for equities trading
- 4:01Limitations of current OMS design
- 8:14Choosing Java over Scala and C++
- 10:22New event bus and sharding design
- 15:37Binary protocol SBE for efficiency
- 20:58Garbage collection free techniques
- 24:11Precision time protocol for synchronization
- 25:37Measuring latency with micro benchmarks
- 30:33Network accelerators with Solarflare
- 32:20Aeron for fast message transport
- 36:55Summary and future considerations
- 37:49Q&A session
