~/talk

Unraveling the Cable: How ActionCable works

Talkat RailsConf 2019 · 2019-05-01..05-03· [ruby-on-rails, web-platform]
slides:none on file

Explains how Action Cable actually wires browsers to Rails: a browser opens a TCP connection, does the HTTP upgrade to 101 Switching Protocols, rack.hijack yields an IO socket, subscriptions flow over that socket, and broadcasts go through Redis Pub/Sub; shows concrete Ruby scripts and browser devtools traces. Claims websockets cut bandwidth overhead—about 80% was HTTP headers in one IoT use case—and demos a chatroom built with these pieces that successfully upgrades, subscribes, publishes, and delivers messages.

AI-written summary · about

  1. 0:00Intro
  2. 0:35About Me
  3. 2:34Not magic, not really
  4. 4:57What even is Action Cable?
  5. 5:55Why use Action Cable?
  6. 8:49Action Cable Lifecycle
  7. 13:35Client connects to cable
  8. 20:40Rack Hijack
  9. 22:18Server confirms the connection
  10. 25:50Redis Pub/Sub
  11. 29:12How WebSockets Work
  12. 31:24Sending messages to 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.