DEV Community

Cover image for Market Data Capture Has No Retry. The Storage Has to Keep Up: Building a NAS for Market Data Capture
Kiara Taylor
Kiara Taylor

Posted on

Market Data Capture Has No Retry. The Storage Has to Keep Up: Building a NAS for Market Data Capture

A gap in a captured feed is permanent. There is no retransmit for a multicast session that has already moved on, and no support ticket that recovers a missing sequence number from yesterday afternoon. That single fact should drive the storage decisions behind a capture rig. Network latency gets most of the attention on a trading floor, but the write path behind the capture process is where quiet, unrecoverable loss tends to happen.

Ingest Rates That Do Not Pause for Anything

OPRA peak message rates have pushed past 100 million messages per second in short bursts, and a consolidated feed capture retaining full headers can land between 8 and 15 TB per trading day depending on how much normalization happens before the write. A single-venue capture on Nasdaq ITCH or Cboe PITCH still runs several hundred gigabytes daily. None of those figures are averages you can smooth across 24 hours. They arrive inside a six-and-a-half-hour session, weighted heavily toward the open and the last twenty minutes before the close.

Sizing against a daily total is the common mistake. Size against the worst sixty-second burst, then confirm the array sustains that rate while a backup job, a replication stream, and a compliance export all run at once. For a multi-venue desk, 3 to 5 GB/s of sustained sequential write per capture node is a realistic floor, and a NAS for market data capture that cannot hold that number under concurrent read load will fail on the day it matters.

Timestamp Integrity and PTP Discipline

Capture without trustworthy timestamps produces evidence you cannot defend. IEEE 1588v2 PTP with hardware timestamping at the NIC brings you to sub-microsecond alignment against a grandmaster clock, and MiFID II RTS 25 sets a 100 microsecond tolerance against UTC for high-frequency algorithmic activity. The storage layer inherits that obligation the moment it writes a file and stamps it with its own clock.

The failure modes are mundane rather than exotic. Controller clock drift corrupts modification times used later in reconciliation, and an NTP fallback during a PTP outage can introduce jumps of tens of milliseconds. Treat the storage node as part of the timing domain rather than a passive sink. The discipline behind any practical NAS appliance deployment applies with more force here: document the clock source, monitor offset continuously, and alert on drift before it surfaces in a reconciliation report.

Why Backpressure Is a Data Loss Event

In most workloads a slow write simply queues and the system catches up later. In capture it does not. The queue is a socket buffer of fixed depth on a host that cannot ask an exchange to slow down, and once that buffer fills the kernel drops datagrams. A 200 millisecond write stall during the opening auction is not a performance blip, it is a hole in the record. This is why write latency consistency matters more than peak throughput. Look at 99.9th percentile write latency under mixed load rather than the average, and treat NVMe write staging, non-volatile cache and predictable flush behaviour as primary selection criteria.

Retention Under SEC Rule 17a-4

Rule 17a-4(f) permits electronic storage where records are preserved in a non-rewriteable, non-erasable format, with the 2022 amendments adding an audit-trail alternative to the original WORM-only path. Six years of retention with the first two in a readily accessible place is the practical baseline, and examiners ask how immutability is enforced rather than whether a policy document exists.

That pushes specific features onto the platform: retention locks applied at the share or object level, immutable snapshots that survive administrative credential compromise, and separate credentials for the retention policy and the data path. Ransomware resilience and regulatory immutability are the same control viewed from two angles, and the practices covered in this guide to securing NAS storage properly map onto what an examiner expects to see. A NAS for market data capture without enforced immutability is a finding waiting to be written.

Replaying Archived Sessions Without a Restore Window

Capture data earns its cost during replay. Best-execution reviews, algorithm regression tests and post-incident reconstruction all read historical sessions back at speed, often for one symbol across many months. If replay requires restoring a full day from tape or a cold object tier, the analysis team quietly stops asking questions. Partition capture files by venue, date and hour so a query touches a bounded set of objects, and keep the trailing 90 days on media that delivers multi-gigabyte-per-second sequential read.

Copies of the Capture Archive, Not Just Capacity

A single copy of a capture archive is a single point of regulatory failure. RAID protects against drive loss and nothing else. Replication to a second site, immutable snapshot schedules and a tested restore path are what preserve the record, and the reasoning behind prioritizing NAS storage backup holds even when the primary array is enterprise-grade and under support.

Test that restore against a real question. Pull one symbol and time range from a date six months back, then time the operation end to end. If it takes longer than an afternoon, the archive exists on paper only.

What to Validate Before the Next Trading Day

Run the rig against a replayed peak session rather than a synthetic load generator. Watch drop counters on the capture NIC, write latency percentiles on the array, and clock offset on every node at the same time. Any one of those drifting while the other two look healthy is the pattern that produces a bad month-end. Appliances from vendors such as StoneFly expose these counters directly, which shortens the argument about where a stall originated. Record the numbers and the date you measured them, because feed volumes grow every year and a NAS for market data capture that comfortably handled last October will be marginal by the next one.

Capture storage is judged on the one day it fails, not the hundreds it works. Specify for burst rate rather than daily average, keep the clock domain honest end to end, enforce immutability at the platform layer instead of in policy documents, and prove the replay path with a real query against a real date. Those four checks catch most of what goes wrong long before an examiner or a trading desk finds it for you.

Top comments (0)