Client and server need to talk
summary
Shows how to make client and server actually stay in sync: implements a simple counter implemented for collaborative edits, compares XMLHttpRequest, long‑poll and WebSocket subscriptions, and uses server time correction to avoid surprises. Describes conflict frequency (many conflicting updates within the first 100 ms), offline‑first reconciliation, and a working strategy that uses a server time endpoint (Firebase/open server time mentioned) plus versioned operations so merges succeed in practice. Includes code‑level concerns and what fails in naive approaches.
AI-written summary · about
chapters (7)
- 0:00Real-time web apps intro
- 5:14Server-client challenges
- 10:57Data sync philosophy
- 16:13Conflict handling
- 21:47Offline-first trade-offs
- 25:12Real-time updates abstraction
- 27:09Q&A
related talks
01h 20mEfficient Client-Server Communication with Differential Synchronization and JSON Patch
25mTaming Client-Server Communication
53mThe Client and Server Need to Talk
01h 18mThe future of chat
30mWebSockets: The Real-Time Avengers
29mWebSockets Bring Light at the End of the Tunnel
44mReal-Time Multi-User State Management for the Collaborative Web
34mLogux, a new approach to client-server communication
