Taming Client-Server Communication
summary
Demonstrates concrete libraries and working code: rest.js is a thin HTTP client with configurable interceptors (mime parsing, retries, basic auth, OAuth) and a chainable API for shared clients; msgs.js implements enterprise integration patterns (channels, transformers, adapters) with a WebSocket adapter and a Redis gateway for cross-process pub/sub. Shows a running circles demo on Cloud Foundry across three instances that broadcasts mouse movements via SockJS/WebSockets and Redis, proving the approach scales.
AI-written summary · about
chapters (17)
- 0:00Start
- 0:22Poor abstractions
- 1:50How do I use rest.js?
- 5:06What's an interceptor?
- 5:46What can interceptors do?
- 6:43Provided interceptors
- 8:48Custom interceptors
- 9:54A real interceptor: basic auth
- 10:37Chaining interceptors
- 12:31Interceptors in practice
- 14:22What about events?
- 15:06The problem with WebSocket libraries
- 15:54msgs.js
- 16:20Hello World
- 18:20Messaging primitives
- 21:42Scalable broadcast server
- 22:41Let's not forget about the client
related talks
40mSocket to me
33mFun With Websockets
29mWebSockets Bring Light at the End of the Tunnel
49mThe Real Time Web with XMPP
17mNodejs microservices. From Zero to Hero.
01h 20mEfficient Client-Server Communication with Differential Synchronization and JSON Patch
44mAdvanced JavaScript Techniques
05mSocket.IO in a Chess Realtime Multiplayer Web Application
