Snapshot recovery
termKept in this browser · My desk
Rebuilding an order book after lost packets or a late start from a periodic full-state message that is valid as of a stated sequence number of the incremental feed, then applying only the incrementals that follow it.
B3's binary feed carries a snapshot stream that loops through a channel's instruments; each snapshot states the incremental sequence it reflects in LastMsgSeqNumProcessed (369) and LastSequenceVersion (37084), and B3 reserves it for large-scale recovery such as a major outage or a late joiner. Its FAST feed also offered a TCP Replayer, which B3 says to use only if few messages were lost; the binary feed has no TCP recovery. CME Group limits TCP replay to 2,000 packets from the last 24 hours.
Procedure. Queue the incrementals while collecting snapshots, discard every queued message at or below the snapshot's sequence number, apply the rest, then leave the snapshot group; treat an instrument with no snapshot as an empty book. Shortcuts. RptSeq (83), a per-instrument sequence, tells a client following few instruments whether a lost packet touched them. Silence. B3's binary feed sends a Sequence message after one second without data, and a client that hears nothing for three intervals must treat its books as inconsistent. CME Group says that after an unrecovered gap all books may be wrong.
Also known as: snapshot recovery, market data snapshot, snapshot feed, late joiner recovery, recuperação por snapshot
Sources
- B3, Binary UMDF Message Specification Guidelines, version 2.3.1.2, sections 6.2, 6.3 and 7.4 (read 2026-11-16): snapshots valid as of LastMsgSeqNumProcessed (369) and LastSequenceVersion (37084); queue incrementals, discard those at or below the snapshot, unjoin; empty books for instruments without snapshots; RptSeq (83); heartbeat every second, inconsistency after three
- B3, UMDF FIX/FAST Market Data Messaging Specification, version 2.2.2, 9 July 2026, section 4.1.4 (read 2026-11-16): the TCP Replayer for the FAST feed, to be used only if few messages were lost
- CME Group, MDP 3.0 Recovery Services (read 2026-11-16): TCP replay limited to 2,000 packets within the last 24 hours and only for small-scale recovery; after an unrecovered gap all books may be wrong