Model-View-Websockets
summary
Argues that combining MV patterns with an event-driven layer and WebSockets replaces many AJAX flows: shows concrete stacks (Twitter/Flight, Airbnb using Backbone server+client, Meteor), demos a global pub/sub that pipes DOM events and socket messages into a shared server-driven application control flow, and uses socket.open/onmessage/emit semantics and socket.io + backbone.duo* for syncing. Claims desktop browsers support WebSockets, mobile is spotty, batching and local caching prevent noisy updates, and implementation is simple and proven.
AI-written summary · about
chapters (28)
- 0:00Start
- 1:06ah, JavaScript
- 3:13win some/lose some
- 4:03implementation issues
- 5:02some approaches
- 7:32Model-View
- 9:46Event-Driven Architectures
- 10:40events and objects
- 11:06events themselves
- 11:47EDA in JavaScript
- 12:54dealing with data
- 13:48the views
- 14:48the action
- 17:58how we do it (now)
- 18:42framework choices
- 19:39a controller
- 22:02a viewmodel
- 24:16when it's tricky
- 26:24not your mama's comet bi-directional
- 27:06available now
- 27:38uses
- 29:28event piping
- 30:34EDA + WebSockets
- 32:01DIY WebSockets
- 34:14socket.io example
- 35:43connecting it
- 38:13sockets for control
- 39:31collection.js
related talks
47mPatterns for Building Event-driven Web & Mobile App Backends
44mAdvanced JavaScript Techniques
40mSocket to me
01h 28mIntroduction to WebSockets
29mWebSockets Bring Light at the End of the Tunnel
44mHow to Approach Modern Web Applications
24mBuilding Realtime Singlepage Apps
43mPatterns for Building Event-driven Web & Mobile App Backends
