The Action Cable Symphony - An Illustrated Musical Adventure
summary
A Rails app converts MIDI to JSON, splits tracks into per-instrument ActionCable channels, and assigns roughly a hundred phones as players; clients synthesize sound with Tone.js and sync clocks against the server using Timesync.js while sessions use JWT for stateless auth. Demo hits real-world limits—conference Wi‑Fi forces a localhost fallback and visible latency/outlier devices—but local runs work. Notes: scalability concerns, AnyCable mentioned as an alternative, and clock offsets require buffering and client-side offsets to sound coherent.
AI-written summary · about
chapters (8)
- 0:00Intro
- 1:14Getting Started
- 3:59Testing
- 7:39Overview
- 15:53Clients
- 17:29Playing Music
- 23:40Latency
- 31:26Conclusion
related talks
39mActionCable for Not-Another-Chat-App-Please
28mReal-time collaboration with Rails
38mAnycable - Universal Action Cable
47mActionCable, Rails API and React - Modern Single Page Apps
37mExploring the Power of Turbo Streams and ActionCable
36mThe pitfalls of realtime-ification
31mInternet of Things: Connecting Rails with the Real World
35mEvolution of Real-Time and AnyCable Pro and ... me
