About this module
Design the feed that sends live prices to a million phones at the open: trust invariants instead of money ones, snapshots and sequence numbers, pub-sub by symbol and edge servers, conflation and backpressure, the hot symbol, reconnects, licences, and what to watch by tomorrow morning.
Lessons
- Lesson 46
Clarifying a Market Data Feed
Phones on patchy networks, a small state per symbol, a one-second budget, and licences
3:09 - Lesson 47
Estimating a Market Data Feed
A million viewers at the open, a naive multiplication, and conflation to cap it
2:25 - Lesson 48
Trust Invariants for a Price Feed
Never stale as live, in order from a snapshot, licensed and labelled, and orders that check their own price
1:37 - Lesson 49
The Streaming API
One WebSocket, subscribe, a snapshot then updates, and sequence numbers in place of keys
2:20 - Lesson 50
Designing the Feed
Two feeds, a feed handler, a snapshot store, pub-sub by symbol, edge servers and licences
3:14 - Lesson 51
Fan-out, Conflation and the Hot Symbol
One slot per symbol, a send timer, backpressure, slow phones and the hottest stock
2:54 - Lesson 52
Snapshots, Gaps and Reconnects
Joining from a snapshot, spotting a missing change, and never showing an old price as live
1:51 - Lesson 53
What Breaks First in a Price Feed
A quiet primary feed, a region down, a lagging pub-sub, and a flash crash
3:08 - Lesson 54
Feed Follow-ups and the Invariant Replay
Slow viewers, stale prices after a reconnect, overnight costs, and five ticks
1:30