Detect and Recover Gaps in a Multicast Market Data Feed

Last updated: November 29, 2026

Quick Overview

Exchanges publish market data over UDP multicast on redundant A and B lines with sequence numbers. Explain why UDP is used and write an arbiter that merges both lines, drops duplicates, delivers in order, and reports gaps it must recover.

Akuna Capital
Software Engineering Fundamentals
Software Engineer
Akuna Capital
November 29, 2026
Software Engineer
Phone Screen
Software Engineering Fundamentals
Easy

0

0

0 solved


Exchanges publish market data over UDP multicast on redundant A and B lines with sequence numbers. Explain why UDP is used and write an arbiter that merges both lines, drops duplicates, delivers in order, and reports gaps it must recover.

Akuna Capital consumes options market data feeds over multicast, and networking basics come up in its software phone screens. The interviewer checks that you know TCP vs UDP trade-offs for one-to-many low-latency data, and that you can write clean sequence handling for the A/B arbitration pattern.

What the Interviewer Expects
  • Explain why multicast UDP beats TCP for one-to-many market data
  • Describe A/B line redundancy and sequence numbers
  • Deliver each sequence number once and in order
  • Buffer out-of-order packets with a bound
  • Report unrecoverable gaps for snapshot or retransmission recovery
Key Topics to Cover
networking
UDP multicast
sequence numbers
market data
How to Approach This
  1. Apply SOLID principles. Single Responsibility makes code testable, Open/Closed makes it extensible.
  2. Choose data structures based on access patterns, not familiarity.
  3. Prefer immutable data and message passing over shared mutable state for concurrency.
  4. Design APIs with RESTful conventions, versioning, meaningful errors, and pagination from day one.
Possible Follow-up Questions
  • How do you recover from a gap: retransmission request vs snapshot?
  • What happens when the exchange resets sequence numbers at start of day?
  • How would you detect that one line is consistently slower?
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

Packets arrive with (seq, payload) from either line, possibly duplicated or out of order. Deliver packets in sequence order exactly once. If a hole stays open while too many later packets wait, give u...

High-Level Design

Why UDP multicast: the exchange sends once and the network fans out to all subscribers; there is no per-client connection state or retransmission stall, and one slow client cannot slow others. The cos...


Submit Your Answer
Markdown supported