Skip to content

Retire the idle Action Cable stack - #33

Merged
6temes merged 1 commit into
mainfrom
retire-solid-cable
Oct 1, 2026
Merged

6temes merged 1 commit into
mainfrom
retire-solid-cable

Conversation

@6temes

@6temes 6temes commented Oct 1, 2026

Copy link
Copy Markdown
Owner

Nothing in deures broadcasts or subscribes, yet every boot loaded the Action Cable engine, mounted /cable, and kept a fourth SQLite database for solid_cable. Production now runs on three databases (primary, cache, queue) and serves no /cable endpoint. Pages, answer submissions and the system tests are unchanged, since the only Turbo in use is request/response turbo_stream templates.

The five places cable lived are all gone: gem "solid_cable", require "action_cable/engine", config/cable.yml, the production cable: database in config/database.yml, and db/cable_schema.rb. turbo-rails runs without Action Cable on its own.

bin/rails routes never listed /cable: Action Cable mounts it as an internal route, which that command hides. The check that the endpoint is gone therefore reads the route table directly. It printed true on main and prints false on this branch, in both development and production.

The cable file already on the production volume is left in place on purpose. Nothing opens it any more, and Litestream never replicated it. The commit message records how to bring the stack back, for when a realtime feature needs it.

Nothing a person sees changes, so there are no screenshots.

Session-settled decisions carried from planning: retire the stack in one commit (user-approved, over keeping the idle stack).

Nothing in the app subscribes or broadcasts: there is no turbo_stream_from,
no broadcast call and no channel, and the only Turbo in use is the
request/response turbo_stream templates. Yet every boot loaded the Action
Cable engine, mounted /cable, and kept a fourth SQLite database for
solid_cable. This removes the solid_cable gem, the action_cable/engine
require, config/cable.yml, the production cable database and its schema.
turbo-rails runs without Action Cable on its own.

The file already on the production volume is left alone: nothing opens it
any more, and Litestream never replicated it.

To bring it back, re-add the solid_cable gem, the action_cable/engine
require, config/cable.yml, db/cable_schema.rb and the production cable
database. Keep a database-backed adapter: the likely first subscriber is a
refresh pushed to an open iPad when an operation run from a console or
runner process changes a child's day, and only the database crosses that
process boundary.
@6temes 6temes changed the title refactor: retire the idle Action Cable stack Retire the idle Action Cable stack Oct 1, 2026
@6temes
6temes marked this pull request as ready for review October 1, 2026 06:44
@6temes
6temes merged commit 21840d6 into main Oct 1, 2026
5 checks passed
@6temes
6temes deleted the retire-solid-cable branch October 1, 2026 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant