SD-44 · LIVE STOCK PRICES · INTERACTIVEBreak it.
Break it.
Then fix it.
Turn up the viewers at the market open, watch what melts, and add the parts a real price service needs. Every switch is a decision you would defend in an interview.
CHALLENGEPush live prices to 10M viewers worldwide with p99 price age under 500 ms and no errors.
StatusDOWNAt 1M viewers
Price age p991800 msExchange to screen, target 500 ms
Errors97.5%Viewers being dropped
Per viewer40 msgs/sEvery tick sent on
Exchange feedsOPEN
80 exchanges at the open600K ticks/s
Tick busDOWN
One broker240M / 6M msgs/s out
ViewersLIVE
1.0M watching 20 symbolsWebSocket
Gateways × 400HOT
Hold WebSockets40M frames/s out
Price historyDOWN
Ticks and candles67K snapshot reads/s
The tick firehose is drowning the gateways. Each gateway reads all 600K ticks a second and sends viewers 40 messages a second they cannot read. Keep only the latest price per symbol and send it every 250 ms.
20×Fewer messagesConflation turns 600,000 ticks a second into 30,000 updates.
250 msConflation window4 frames a second looks live and fits the 500 ms target.
50KViewers per gatewayAbout 300 gateways at 10M viewers, running at 70%.
seqOrder per symbolClients drop any update older than the price they show.
Want the reasoning behind every switch?Visual walkthroughFull write-up
Was this lab useful?Your vote tells us what to improve next.