What is ActionCable?
Framework for real-time communication
Integrates websockets with the rest of your
Full stack offering with client side JS & server
It’s Rails 5 new hotness
Why Does ActionCable Exist?
Demand for push notifications & real-time
Lack of out-of-box support for websockets
The Moving Parts /
What You Need To Know
Modern concurrent webserver
Designed for parallelism & speed
Handles the incoming and outgoing
Data structure server
Stores data in memory for fast read/write
ActionCable leverages PubSub feature
Full duplex connections over single TCP
Simultaneous upstream and downstream
The special sauce behind push notifications &
Rails 5 - now with websockets!
This is where the PubSub magic happens
Channels are the publisher
Connections are the subscriber
Channels will connect the websocket’s stream
Blah Blah Blah...Why The Hell Does
This All Matter!??!?!?!??!?
It’s more than just new hotness
It’s the future of streaming websockets in
It will fill the void for real-time features that
has been lacking in Rails
What Can I Do With It?
Anything that requires a real-time stream
Anything that requires JSON encoded requests