~/talk

Taming Client-Server Communication

Talkat JSConf US 2013 · 2013-05-28..05-30· [web-platform, microservices]
links:none on file
slides:none on file

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

  1. 0:00Start
  2. 0:22Poor abstractions
  3. 1:50How do I use rest.js?
  4. 5:06What's an interceptor?
  5. 5:46What can interceptors do?
  6. 6:43Provided interceptors
  7. 8:48Custom interceptors
  8. 9:54A real interceptor: basic auth
  9. 10:37Chaining interceptors
  10. 12:31Interceptors in practice
  11. 14:22What about events?
  12. 15:06The problem with WebSocket libraries
  13. 15:54msgs.js
  14. 16:20Hello World
  15. 18:20Messaging primitives
  16. 21:42Scalable broadcast server
  17. 22:41Let's not forget about the client
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.