REST snapshot plus WebSocket delta consistency
This is an exchange app's order book and ticker screen. The design fetches the current snapshot over REST first and then applies only the changes (deltas) that arrive over WebSocket, but now and then the order book on screen drifts from reality. In what order, and by what rules, do you combine the snapshot and the delta stream so consistency doesn't break?