Design a Low Latency Market Data Feed Handler With Gap Recovery

Last updated: November 29, 2026

Quick Overview

Design the component that receives an exchange's multicast market data, detects and recovers from packet gaps, rebuilds per-symbol order books, and publishes normalized updates to in-house strategies with single-digit microsecond overhead.

D. E. Shaw
System Design
Software Engineer
D. E. Shaw
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

0

0 solved


Design the component that receives an exchange's multicast market data, detects and recovers from packet gaps, rebuilds per-symbol order books, and publishes normalized updates to in-house strategies with single-digit microsecond overhead.

In the style of a D. E. Shaw system design round for engineers on trading infrastructure, where correctness of the book and tail latency both matter. The interviewer checks knowledge of A/B line arbitration, sequence gap handling, snapshot recovery, and the systems techniques (threading, memory, kernel bypass) that keep the hot path fast.

What the Interviewer Expects
  • Arbitrates redundant A and B multicast lines by sequence number
  • Detects gaps and recovers with retransmission or snapshot plus buffered replay
  • Keeps the hot path allocation free and lock free, with pinned cores
  • Publishes normalized updates through shared memory with a clear consumer contract
  • Defines how consumers learn a book is stale or recovering
  • Talks about measuring latency with hardware timestamps and percentiles
Key Topics to Cover
multicast
sequence gaps
order book reconstruction
lock-free queues
kernel bypass
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • What changes if the exchange sends only incremental updates with no snapshot channel?
  • How would you test that the rebuilt book matches the exchange after a day of traffic?
  • How do you handle a slow consumer without slowing the feed handler?
  • Where would you consider FPGAs, and what would you give up?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Inputs: two redundant UDP multicast lines (A and B) carrying sequenced incremental messages (add, modify, delete, trade) for several thousand symbols, a TCP retransmission service, and a periodic snap...

High-Level Design

Pipeline on dedicated cores: (1) receive thread per line using kernel bypass (for example a userspace NIC stack) reading into a preallocated ring; (2) arbiter that takes whichever line delivers sequen...


Submit Your Answer
Markdown supported

Related Questions