The last summer month wasn’t full of real-time events, but we still managed to find a handful to share (along with some exclusive content 😉). Enjoy!
Highlights
August minor AnyCable releases brought a new major (in some sense) feature—NATS pub/sub support.
Videos
In this episode, we explore Fly.io capabilities in deploying Rails real-time applications (Action Cable and AnyCable).
News
LiveView Native has been revealed
At today’s (Sep, 1st) ElixirConf, the LiveView Native has been introduced. Unlike Hotwire/Turbo, LiveView Native allows controlling native mobile views (currently, SwiftUI) via Phoenix LiveView components.
Rails SaaS x AnyCable [Oct 6-7, LA]
We’re glad to announce that Evil Martians and AnyCable are sponsoring a new Ruby (and business) conference—Rails SaaS. So come say “hi!”
Releases
This release improves GraphQL features by adding graphql-ws protocol support and integration with JWT identification.
Nate Hopkins, the author of Stimulus Reflex, attempts to close the gap between Turbo Steams and Cable Ready by adding the #invoke
action.
ACLI (Action Cable command-line) is a terminal client to communicate with Action Cable servers written with mRuby. This release brings M1 binaries and adds an experimental history
command support (for AnyCable v1.5).
Frame of curiosity: one app, many cables
It has been possible to have multiple isolated Action Cable servers in a single Rails app for a while, but you likely haven’t seen this in real life.
Recently, I found such a use case: Lookbook. This is a Rails engine providing a storybook-like experience for View Components. In addition, it manages its own Action Cable server to implement a live-reloading functionality.
Check out also the example app, which demonstrates how to use multiple cables with both Action Cable and AnyCable.
P.S. This frame is close to the Rails modularity problem (aka component-based architecture). A new Slack server has been launched recently focused on this particular topic: