InterviewLegend

Design a Market Data Feed from Several Venues

Frequently asked
Alex Chen28 min readGuide updated
In this lesson
  • Lay out a feed that takes several venues' data to central strategies, from venue line to strategy callback
  • Put each venue's messages back in order and recover gaps without handing a strategy a wrong book
  • Argue the latency budget, the fan-out to many strategies and failover with real numbers

Understanding the problem

The prompt

Something like this: design a market data feed that takes data from multiple trading venues and delivers it to centralised trading strategies.

This prompt came up in a 2026 DRW software engineer loop that ended in an offer. The same loop had a take-home, an algorithms round, a culture fit round and live coding with Java details and some networking and Linux questions. A version of the same prompt was also listed for a quantitative developer interview around late 2025. Not every DRW loop has a spoken design round, and candidates haven't shared which follow-ups came after this one. The deep dives below are the places a trading firm's engineers are most likely to push, given what the system has to do.

Each exchange, or venue, publishes a stream of messages: an order was added at this price, an order was cancelled, a trade happened. Every venue uses its own format, its own numbering and its own way of telling you that you missed something. Strategies are programs that decide what to buy and sell, and they want one clean, current picture of each instrument's order book no matter where the data came from. They want it fast. The scale is small next to a consumer product. Even a peak of a few million messages a second is a lot for one machine and very little for a cluster. The hard part is correctness at speed. A strategy that sees a book with one cancelled order still in it will trade against a price that isn't there.

The DRW angle
The loop that reported this prompt also tested Java details, networking and Linux in live coding. Be ready for the design talk to drop down a layer too: what multicast is, what the kernel does with a packet, what a garbage-collection pause does to a feed. Boxes and arrows alone won't hold up.

Requirements

Functional requirements

Pin down the surface first. Ask which venues, which asset classes and what the strategies consume. Most strategies want price levels: the best bid and offer, and a few levels behind them, with the size at each. A few want every individual order. All of them want to know when the data they hold can't be trusted. A strategy that starts up at midday needs the current book straight away, without replaying the morning.

In scope

  • Connect to several venues, each with its own protocol and numbering
  • Rebuild each instrument's order book and publish updates to subscribed strategies
  • Detect missed messages, recover them, and flag a book as stale until it's whole
  • Give a strategy that joins late a current snapshot, then live updates
  • Record everything for replay and research

Below the line (call it out, then skip)

  • Sending orders back to the venues (the order gateway is a separate system)
  • The strategies' own logic
  • Market data licensing and billing per user
  • A consolidated best price across venues, unless the interviewer asks

Non-functional requirements

Correctness comes first, and it has a precise meaning here. Every update for an instrument reaches a strategy in the venue's order, with none skipped. If one is missing, the strategy is told so before it acts on the gap. A wrong book is worse than a late one. Latency comes second, and it gets measured in microseconds inside a site. The feed should add as little as possible between a packet arriving from the venue and the strategy's callback running. Ask what "centralised" means early. If the strategies sit in one data center and the venues are spread across Chicago, New Jersey and London, distance sets a floor no code can beat, and the design has to say where the work happens. Availability is the third. The open and big news moments are exactly when message rates spike and when strategies most need data. If the interviewer has no numbers, propose some and write them down.

  • Venues and instruments: 8 venues, 20,000 instruments. A plausible mix of futures, options and crypto venues. Options chains make the instrument count large quickly.
  • Peak message rate: 2 million a second. Across all venues at the open, with the busiest single venue near 500,000 a second. Quiet periods run a tenth of that.
  • Time per message: about 2 microseconds. One thread handling 500,000 messages a second has 2 microseconds for each, which rules out anything that blocks or allocates freely.
  • Recorded per day: about 400 GB. An average of 200,000 messages a second over an 8-hour busy day is about 6 billion messages, at 64 bytes each.

The data model, in words

Four things matter. A venue message is whatever arrives on the wire, in that venue's format. It carries a sequence number that counts up by one per message on its channel, a channel being one stream of the venue's feed, usually covering a group of instruments. The sequence number is how we know we missed something. A book update is our normalised version of that message. It says which instrument (by our own id, never the venue's symbol), which side, what price, what size and what kind of change. It also keeps the venue's sequence number and two timestamps: when the venue sent it and when we received it. Prices are integers counted in the instrument's tick size, the smallest step its price can move by, so no strategy ever compares two floating-point prices.

An order book is the current state per instrument per venue: price levels on each side with total size, and for full-depth venues the individual orders behind them. It also has a status, live or stale. An instrument record from reference data maps each venue's symbol to our id and holds the tick size, the contract size and which venue channel carries it.

What each record holds
RecordFields
book updateinstrument_id · venue · side · price_ticks · size · change_type · venue_sequence · venue_time · receive_time
order bookinstrument_id · venue · bid levels · ask levels · last_sequence · status (live or stale)
instrumentinstrument_id · venue_symbol per venue · tick_size · contract_size · venue_channel
Books live in memory in the feed handlers and the snapshot service. Updates are appended to the tick archive. Instrument reference data is loaded at startup and refreshed before each trading day.

The API

Strategies talk to the feed through a client library that runs inside their own process. They don't call a remote service per update, because a network round trip per message would cost more than everything else combined. The library hides how data arrives and exposes a few calls and two callbacks.

The strategy-facing interface
RequestServer push
StrategyFeed client librarystart receiving an instrument
subscribe(instrument_ids, depth)
a snapshot per instrument, then live updates
Depth is the number of price levels wanted. Top of book only is far cheaper to deliver.
StrategySnapshot servicefetch the current book again
snapshot(instrument_id)
book, last_sequence, status
Feed client libraryStrategya book changed
onBookUpdate(update)
instrument, side, price, size, venue sequence, timestamps
Feed client libraryStrategya book became stale or live again
onStatus(instrument_id, status)
live or stale, with the reason
Strategies pull their quotes on stale. Most of the correctness story ends at this callback.

High-level design

The design splits into an edge at each venue and a center where strategies run. At the edge, close to the exchange, we read the venue's feed, put it in order, recover anything missed and turn it into our own format. In the center, we spread those updates to every strategy that wants them. In the diagram, blue is outside the feed itself (the venues and the strategies it serves), violet is a service we run, amber is a link or bus that moves data, and green is data we keep.

Loading diagram...

1) Receive. The Venue feeds A and B arrive at a Feed handlers process on a server in the exchange's own data center, a setup called colocation. The handler reads both lines. For each sequence number it keeps the first copy that shows up and drops the second, which is called A/B arbitration. A packet lost on line A almost always arrives on line B a few microseconds later, so most losses never turn into gaps. Nothing here touches disk or allocates memory per message, because at 500,000 messages a second there are only 2 microseconds to spend on each. What happens when both lines miss the same message is the second deep dive.

2) Normalise and build the book. The in-order message goes to the Normaliser and book builder, usually on the same thread. It looks up the instrument in Instrument reference data, converts the price to ticks and applies the change to its in-memory book. Then it emits one of our book updates, carrying the venue's sequence number and both timestamps. A venue that sends every individual order still produces price-level updates on our side, because the book builder adds up the orders at each price. How different venue formats squeeze into one model is the first deep dive.

3) Ship to the center. Updates go over the Site-to-site link to the central site. For a venue in the same metro area that adds well under a millisecond. For a venue in another city it adds milliseconds, which dwarfs everything else in the pipeline. That's a strong reason to put latency-sensitive strategy logic near its venue and keep "central" for the rest. The latency deep dive works through the numbers.

4) Fan out to strategies. In the center, updates go onto the Market data bus. Strategies on other servers join the multicast groups for their instruments. Strategies on the same server read a shared-memory ring buffer the bus writes once. The Snapshot service listens to everything and keeps every book current, so a strategy that starts late asks it for a snapshot, then switches to live updates. The Capture recorder writes everything to the Tick archive off to the side. A strategy that can't keep up is a real problem with a ring buffer, and it gets its own deep dive.

Technology choices

  • Feed handlers are C++ or allocation-free Java, pinned to dedicated CPU cores. Often they use kernel bypass networking such as Solarflare's OpenOnload or DPDK, which hands packets to the program without a trip through the operating system. If a handler process dies, a hot standby reading the same lines takes over, as the failover deep dive covers.
  • The Market data bus is UDP multicast between servers and a shared-memory ring buffer within a server. Aeron and Chronicle Queue are popular Java options, and the LMAX Disruptor is the well-known in-process ring buffer. Kafka writes to disk and batches messages, which adds milliseconds, so it stays off this path.
  • The Snapshot service runs as an in-memory process and reads the bus the same way a strategy does. Running two of them means a strategy can always get a snapshot, and either one can rebuild after a restart by taking snapshots from the venues through the handlers.
  • Instrument reference data lives in Postgres, published to handlers as a file or cache before the open. It changes once a day and must be consistent, which is what a relational database does well.
  • The Tick archive is compressed daily files in object storage such as S3, often in a columnar format such as Parquet for research. It's written once and read in bulk, the case object storage is cheap for.

Candidates reach for Kafka by habit. It's a fine choice for the recorder's path, or for feeding a risk system that can tolerate tens of milliseconds. On the path to a strategy it's far too slow.

Potential deep dives

How do we normalise venues that disagree on almost everything?

Venues differ in ways that change the meaning of a message, beyond field names. One sends every individual order (market by order). Another sends only the total size at each price level (market by price). One prices in decimal dollars, another in integer ticks with an implied decimal, a crypto venue in strings like "64123.50". Symbols differ, and one future can have three names across three venues. Some venues publish implied prices, quotes created by combining orders in related spreads, that you can't trade the same way as a real order. Strategies must never see any of this.

BadPass raw venue messages through and let strategies decode them

Approach

Publish each venue's messages as they arrive and give strategies a decoding library per venue.

Challenges

Every venue's quirks now live in dozens of programs, so one protocol change means redeploying all of them. Two teams decoding the same feed slightly differently will disagree about the book, and nobody notices until they trade on different views. Comparing prices across venues needs symbol mapping in each program too.

GoodAn adapter per venue into one update format

Approach

Each feed handler includes an adapter that translates its venue's messages into our book update. Symbols map to our instrument ids through reference data. Prices become integer ticks. A strategy sees one format whatever the source, and a protocol change touches one adapter.

Challenges

Translating message by message leaves the venue's book model leaking through. A market-by-order venue produces order-level updates while a market-by-price venue produces level updates, so strategies still branch on the venue. Implied prices and venue-specific flags get dropped or mistranslated unless the format has room for them.

What the Good tier misses is that strategies want a book, while the adapter hands them messages. Building the book at the edge fixes that.

GreatBuild the book at the edge, publish one book model

Approach

The normaliser keeps a full book per instrument and publishes changes to that book: this price level on this side now has this size. A market-by-order venue's add, modify and cancel messages roll up into level changes, with the order-level stream still available to the few strategies that want it. Every update keeps the venue, its sequence number and its timestamps, so nothing is lost for debugging. Implied quotes travel as a separate flagged layer.

Challenges

The book builder must be exactly right for each venue's rules, which is where most bugs live: a modify that loses queue priority, an order that executes in part, a trade that also reduces the book. The defence is replay. Run a recorded day through the builder and compare its books with the venue's own snapshots at many points in the day. Any mismatch is a bug, found before a strategy finds it.

Integer ticks matter more than they look. A floating-point price like 0.1 can't be stored exactly in binary, so two venues' identical prices can compare unequal, and a book keyed by price can grow a phantom level. Integers in ticks have none of that. Converting a crypto venue's decimal strings to ticks is a parse, done once at the edge.

The DRW angle
DRW hires engineers for options desks and for its crypto arm, Cumberland DRW. "Several venues" can easily mean binary multicast futures feeds and JSON over WebSocket in one design. Name both shapes when you scope the problem and show how one book model covers them.

What happens when we miss a message?

A/B arbitration hides most losses, but not all. A switch dropping packets under a burst, a handler that paused for a moment, or a venue-side glitch can leave a hole on both lines. The handler sees sequence 1,001 arrive when it expected 998. Messages 998 to 1,000 might be an order being added, modified and cancelled. Apply 1,001 without them and the book is wrong in a way no later message fixes. Sizing helps. At 500,000 messages a second, a resend that takes 5 milliseconds means about 2,500 messages pile up behind the hole. Recovering from a snapshot that takes a full second means 500,000. At 64 bytes each that's 32 MB, which is small enough to buffer in memory.

BadSkip the gap and carry on

Approach

Log the missing range and keep applying new messages, on the theory that the book will correct itself.

Challenges

It won't. A missed add means a later cancel refers to an order the book never had. A missed cancel leaves a price level that doesn't exist, and a strategy may quote against it. Market-by-price venues send absolute sizes per level, so a later update for the same level does repair it, but a level that never updates again stays wrong all day.

GoodBuffer, request a resend, then apply in order

Approach

On a gap, the handler stops applying messages for that channel. It buffers everything that arrives after the hole, keyed by sequence number, and asks the venue's resend service for the missing range. When the missing messages arrive it applies them, then drains the buffer in order. A gap usually closes in a few milliseconds, and the book is never wrong.

Challenges

Resend services are rate limited and keep only recent history, so a long outage can't be filled this way. While waiting, strategies hold a book that silently stopped updating. If the resend never comes, the channel stalls forever. And one gap stalls every instrument on that channel, including instruments that weren't affected.

The Good tier leaves two holes: strategies don't know they're waiting, and there's no plan when a resend fails. Both matter during the busiest seconds of the day.

GreatMark stale at once, resend with a deadline, snapshot as the fallback

Approach

On a gap the handler publishes a stale status for every instrument on that channel, so strategies pull their quotes immediately. It requests a resend with a deadline of, say, 20 milliseconds. If the resend fills the gap, it applies the messages, drains its buffer and publishes live again. If not, it waits for the venue's snapshot feed, rebuilds the books from it, keeps only buffered messages after the snapshot's sequence number and replays them. Then the books go live.

Challenges

The stale and live flips have to be cheap and reliable, because they're the safety signal. The buffer needs a cap, so a channel down for minutes drops to snapshot-only recovery. Venues reset sequence numbers at session start or after their own failover, and a reset must read as "start fresh," never as a giant gap.

The core of the Great tier is the rule a handler follows for each incoming message on a channel.

sequence < expected -> duplicate from the other line, drop it
sequence == expected -> apply it, then apply any buffered messages that now follow
sequence > expected -> buffer it, publish stale, request expected..sequence-1
snapshot at sequence S -> rebuild the book, drop buffered <= S, expected = S + 1

That rule is small enough to code, and the practice problem at the end of this lesson is exactly that. The scaling playbook on real-time updates covers sequence numbers and catch-up for ordinary push systems. Market data is the same idea with a far tighter clock.

How do updates reach many strategies without a slow one hurting the rest?

Say 40 strategy processes across 10 servers in the central site, each subscribed to a few thousand instruments. Some react to every change within microseconds. Others recompute something every few milliseconds and only care about the latest book. A burst at the open can push 2 million updates a second through the bus. If a strategy's instruments produce 500,000 of those and it handles 100,000, it falls 400,000 behind every second.

BadA message broker with a queue per strategy

Approach

Publish every update to Kafka or RabbitMQ and give each strategy its own consumer.

Challenges

A broker stores and forwards each message, and Kafka batches writes to disk, which adds milliseconds where we budgeted microseconds. Each slow consumer's backlog grows without bound, and when it catches up it's acting on data seconds old. Brokers suit work where every message must be processed eventually. A strategy has no use for a price from three seconds ago.

GoodMulticast between servers, shared memory within one

Approach

The bus publishes each update once on a multicast group for its instrument set, and the network copies it to every server that joined. On each server, one receiver writes updates into a shared-memory ring buffer, a fixed array that the writer fills in a circle while each reader tracks its own position. Every strategy on that host reads from the same memory with no copy and no locks.

Challenges

The ring has a fixed size. A reader that falls a full lap behind finds its next slot already overwritten. The writer can't wait for it, or one slow strategy stalls every fast one on the host. So a lapped reader has to notice, give up the messages it missed and resynchronise from a snapshot, with its books stale in the meantime.

For a strategy that only cares about the latest book, missing intermediate updates during a burst is fine, as long as it ends up with the right book. The Great tier builds that into the design.

GreatAdd conflation for strategies that only want the latest book

Approach

Offer two kinds of subscription. A full subscription gets every update from the ring, for strategies that must see each change. A conflated subscription gets the latest state per instrument: the client library keeps one slot per instrument, overwrites it as updates arrive and marks the instrument dirty. When the strategy is ready it reads only the dirty instruments' current books. A slow reader then sees fewer, newer updates and never falls behind.

Challenges

Conflation loses individual trades and order events, so a strategy that counts volume or reacts to each trade must take the full stream. A ring of a million slots fills in half a second at 2 million a second, so lapping still needs alerts and a resnapshot path. Readers on the same machine also compete for CPU cache, so the hottest strategies get their own cores.

The DRW angle
One 2026 DRW intern loop asked for a rolling volume-weighted average price per symbol, then pushed on concurrent readers with per-symbol locks and on pushing every symbol's value to clients once a second. That's this deep dive on a small scale. Be ready to explain how a ring buffer lets many readers share one writer without a lock.

Where does the latency go?

Put a budget on the board. Inside a colocated site, a packet reaching the network card, being decoded, applied to the book and handed to a strategy on the same machine can take single-digit microseconds with kernel bypass. Going through the normal operating system network stack adds tens of microseconds. A garbage-collection pause of 10 milliseconds at 500,000 messages a second backs up 5,000 messages in one go. Distance is the big number. Light in fibre covers about 200 km per millisecond. Chicago to New Jersey is roughly 1,200 km, so fibre costs at least 6 milliseconds one way, and real cable routes are longer than a straight line. Through air, radio covers about 300 km per millisecond, which is why microwave on that route takes about 4 milliseconds. Either way it's a thousand times the handler's budget.

1

Keep the hot path off the operating system

Kernel bypass reads packets straight from the network card into the handler's memory. Pin each handler thread to its own CPU core and spin on the card instead of sleeping, so it never waits to be scheduled.

2

Never allocate per message in Java

Preallocate every update object and reuse it, or write updates straight into the ring buffer's memory. With no garbage there's nothing to collect, so no pause hits the feed at the open.

3

Measure with hardware timestamps

Stamp each packet as the network card receives it and again in the strategy callback. Track the 99th and 99.9th percentile per venue, since the average hides the bursts that matter.

4

Move the fast logic to the venue

"Centralised strategies" can stay central for slow decisions such as risk and inventory. Anything that must react inside a millisecond to one venue runs in that venue's building, with the central site getting the same feed for the rest.

Raise that last point before the interviewer does. The prompt says centralised. A strong answer agrees for most strategies, then shows where physics forces an exception. Ask whether the strategies care about microseconds at all. A firm running a central model that reprices every few milliseconds needs a very different feed from one that races other firms to a stale quote.

How does the feed survive a failure?

List what can break and give each a plan, because the open is when a failure costs most. A feed handler process can crash. Its server can die. The link between a venue's site and the center can drop. The venue itself can fail over to its backup and reset its sequence numbers. A strategy can crash and come back.

GoodA cold standby that restarts and recovers

Approach

If a handler dies, a supervisor starts a fresh one, possibly on another server. It loads reference data, takes a snapshot from the venue and starts publishing again. Strategies see stale for that venue until it's back.

Challenges

Startup plus a venue snapshot can take seconds, and a snapshot feed may cycle slowly through thousands of instruments. During the open that's a long time to be blind on one venue. It also loads the venue's recovery service exactly when every other firm with a problem is using it.

GreatHot pairs everywhere, deduplicated by sequence number

Approach

Run two handlers per venue channel on separate servers, both reading both lines and both building books. Both publish. Each update carries the venue and its sequence number, so the bus receiver keeps the first copy and drops the duplicate, the same arbitration trick used on the A and B lines. Losing one handler costs nothing. Two links reach the center by different routes, and two snapshot services run side by side.

Challenges

Two handlers can disagree when one has a gap the other doesn't, so the receiver must prefer the live copy and never mix updates from a stale book. A venue's own failover can reset sequence numbers, so handlers treat a reset as a new session and resnapshot. Doubling everything doubles hardware and colocation cost.

A crashed strategy is the easy case, because the snapshot service exists for it. On restart it subscribes and buffers live updates, then asks for snapshots. It drops buffered updates the snapshots already include and goes live. That sequence is the same as the handler's own snapshot recovery, one layer further down. The scaling playbook on async processing covers retries and redelivery for systems that can afford to wait. This one mostly can't, which is why it runs hot copies instead.

The DRW angle
DRW's careers page lists "Challenge consensus" among its principles, with the line "Strong opinions, loosely held." Hot pairs cost real money. Commit to a failover plan, give the cost, and change course if the interviewer says a few seconds of stale data is acceptable for this desk.

Practice the core in code

The piece of this design that decides correctness is the per-channel sequencing rule from the gap recovery deep dive. Shrunk to one class, it drops duplicates from the other line and buffers messages that arrive early. It releases messages in order the moment a hole fills, reports which ranges are still missing, and applies a snapshot.

The problem leaves out the network, the venue format and the book itself. A message is a string, and the class only decides what to release and when. It's also what you'd write if the interviewer asked you to make the gap handling concrete in code.

1

Feed sequencer: order, deduplicate and recover gaps

Medium
Problem
A venue publishes numbered messages on one channel, and a feed handler receives them out of order, sometimes twice and sometimes not at all. Write a class FeedSequencer that releases messages strictly in sequence order. FeedSequencer(start) sets the first expected sequence number.

receive(sequence, message) returns the list of messages that can now be released, in order. A sequence below the next expected number, or one already held, is a duplicate, so return an empty list. When it equals the next expected number, release it along with any held messages that now follow without a hole. A higher number is held, and the call returns an empty list.

gaps() returns the missing ranges between the next expected number and the highest held sequence, as [first, last] pairs in order. It returns an empty list when nothing is held.

reset(sequence) applies a snapshot that already includes every message up to sequence. If sequence is below the next expected number, ignore it and return an empty list. Otherwise drop held messages up to and including sequence, make sequence + 1 the next expected number, and return the held messages that can now be released, in order.
  1. FeedSequencer(1)
  2. receive(1, "a")→ ["a"]
  3. receive(2, "b")→ ["b"]
  4. receive(2, "b")→ []
  5. receive(1, "a")→ []

The second copies of 2 and 1 come from the other line, so they're dropped.

How this uses the pattern

Keep the next expected sequence number and a map of held messages. Releasing is a loop that pops the expected number from the map while it is there.

Write it here, or go full screen with the problem, hints and solution beside the editor.

Feed sequencer: order, deduplicate and recover gaps

Loading...
Click "Run" to execute your code
The DRW angle
This is the handler's gap rule from the design, small enough to run. The common bug is releasing a held message before the hole in front of it fills, which would hand a strategy an add, then a cancel, with the modify between them missing. Say the invariant before you code: everything released so far is a gapless run.
Take it further
Natural extensions bring the design back. Cap the number of held messages and report when the cap forces a snapshot. Add a deadline per gap so a resend that never comes triggers a snapshot request. Then support a sequence reset after the venue fails over, which should start a fresh session rather than open a huge gap.

Follow-ups to be ready for

A consolidated best price. A strategy wants the best bid and offer across all venues for one product. Compute it in the client library from each venue's book, because each venue's data arrives with different delays and the strategy should see which venue each price came from. A central service that merges books adds a hop and hides how fresh each piece is.

Replaying a day. Research wants to run a new strategy against last Tuesday. The recorder kept every update with its receive time, so a replay tool reads the archive and publishes onto a test bus at recorded speed or as fast as possible. A strategy should not be able to tell replay from live, which is why the client library hides the transport.

Adding a new venue. The interviewer may change the requirements halfway. One 2024 DRW candidate saw exactly that when the reviewers changed the take-home question during its live review. A new venue means a new adapter and book builder, new reference data mappings and a replay test against the venue's snapshots before it goes live. Nothing downstream should change.

Monitoring. Alert on gaps per channel per minute, time spent stale per instrument, the 99.9th percentile latency from network card to strategy, and ring buffer readers that lap. Compare each handler's books with the venue's snapshots on a schedule, so a silent book-building bug shows up as a mismatch before it shows up as a loss.

What is expected at each level

Software engineer

Expect roughly 80% breadth and 20% depth. You get a complete pipeline on the board: handlers per venue, one normalised format, a bus to strategies, a snapshot path for late joiners. You know what a sequence number is for and that UDP can lose packets. When the interviewer asks about a missed message you reach the buffer and resend answer, and you know Kafka is too slow for the strategy path. The bar: a correct design where a strategy never trades on a book with a hole in it.

Senior software engineer

Closer to 60% breadth and 40% depth. You bring up A/B arbitration, the stale signal and snapshot recovery before you're asked. The gap buffer and the per-message budget get numbers. Full and conflated subscribers are separate, and you can explain how a ring buffer handles a slow reader. In Java you know why allocation on the hot path matters. The bar: the gap and slow-reader stories are complete, with the numbers that size them.

Staff and above

Depth leads, around 40/60. You question "centralised" with the speed of light and propose where logic should live. Failover gets a plan across handlers, links and the venue's own reset, along with what hot pairs cost. Proving book builders correct with replay comes up, and so does running this every day with monitoring the trading desk trusts. The interviewer redirects you rather than pulling answers out. The bar: you lead, tie each choice to what the strategies need, and say where the money goes.

Key Takeaways

  • ✓Put a feed handler per venue near the exchange. It arbitrates the A and B lines, sequences messages and recovers gaps.
  • ✓Build the book at the edge and publish one model, with integer tick prices and the venue sequence number on every update.
  • ✓On a gap, mark the books stale at once, try a resend with a deadline, and fall back to the venue snapshot.
  • ✓Fan out with multicast and shared memory, and give slow strategies conflated updates so nobody falls behind.
DRW interview guide

Know what DRW asks before you walk in.

29 coding · 3 system design · 18 behavioral questions

Get Premium$49 a year · Instant access
Or start freeNo card.

Get their questions first.

DRW System Design Interview QuestionsHad your DRW interview?How we research

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.