3

We are planning to upgrade our application to Rails 8.0 and take advantage of the new Solid* features that allow us to remove the Redis dependency. I've done some searching and cannot find any upgrade guides that discuss the move away from Redis. The application started out on Rails 7.0 and we've done the upgrades to 7.1 and 7.2 with some simple code changes. All we really needed to do was make some minor code changes to deal with deprecations.

What is the procedure for removing the Redis dependencies and replacing it with Solid*?

5
  • 1
    what kind of procedure are you expecting? install solid, deploy, delete redis. Commented Dec 26, 2024 at 5:42
  • 1
    I'm doubtful that it could be as simple as that if you are upgrading an application that is already in production and requires 24x7 uptime. Is there a need to migrate the redis data to solid? Would there be any impact on end users of the application? Commented Dec 26, 2024 at 14:33
  • 3
    cable and cache can just be switched over, nothing to migrate. for the queue you'll probably need to run your current job worker to finish any jobs in redis, any new jobs would go into solidqueue. Commented Dec 26, 2024 at 20:32
  • 1
    Mark, you aren't the only one. I came here with the same question, and I find it extremely disappointing that none of this is mentioned anywhere in the upgrade guide or in the release notes. The implication being that the answer is obvious, and therefore not needed, runs counter to everything I have experienced from the ruby and rails communities. Commented Jan 9 at 16:25
  • 1
    Our upgrade is on hold for now due to other priorities. When we get around to it, I'll add some details on our experience with the upgrade. Commented Jan 10 at 20:33

1 Answer 1

0

The question is valid, it seems though that the installation guide in the Solid Cable readme on Github contains all necessary information:

https://github.com/rails/solid_cable?tab=readme-ov-file#solid-cable

Most important point:

Solid Cable is configured by default in new Rails 8 applications. But if you're running an earlier version, you can add it manually following these steps:

  1. bundle add solid_cable
  2. bin/rails solid_cable:install

This will configure Solid Cable as the production cable adapter by overwritting config/cable.yml and create db/cable_schema.rb.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.