One cable to rule them all
summary
Action Cable hits memory and CPU limits at thousands of WebSocket connections — idle 20,000 connections balloon memory, and a Rails site handling ~5,000 connections needed ~20 GB RAM. AnyCable replaces Action Cable’s connection server with a Go WebSocket server, uses gRPC (HTTP/2 + protobuf) to call Rails channels, and broadcasts via Redis, cutting resource needs by about 10x and keeping sub-second latency. Embedding Ruby with mRuby inside Go lets simple channel logic run in-process (in-process calls ~0.12 ms vs remote RPC tens of ms).
AI-written summary · about
chapters (9)
- 0:00Introduction
- 3:34Action Cable overview
- 5:46Performance challenges
- 8:54Technical limitations
- 14:08Introducing Any Cable
- 18:27Any Cable features
- 22:57Light Cable and future
- 24:44Optimizing with MRuby
- 31:26Summary and conclusions
related talks
38mAnycable - Universal Action Cable
34mUnraveling the Cable: How ActionCable works
38mHigh Concurrent Ruby Web Development Without Fear
28mReal-time collaboration with Rails
39mActionCable for Not-Another-Chat-App-Please
28mReal-Time Rails
35mThe Action Cable Symphony - An Illustrated Musical Adventure
47mActionCable, Rails API and React - Modern Single Page Apps
