For years, Redis has been a required part of any serious Ruby on Rails application. Job queues, distributed cache, real-time WebSockets: everything went through this in-memory server. Convenient, certainly, but Redis is one more service to provision, monitor and pay for. Rails 8, released in late 2024, changes things profoundly. The Solid Trifecta (Solid Queue, Solid Cache and Solid Cable) brings solutions based on SQLite or your existing relational database. No more need for a dedicated Redis server for most applications. This major evolution reduces operational complexity, lowers infrastructure costs and speeds up deployments. Whether you are building a business application, a SaaS platform or an MVP, understanding the Solid Trifecta is now essential. Here is a complete guide to adopting these three gems in production.
Why Rails 8 drops Redis by default
The problem with the Redis dependency
Redis is fast. But every additional service in your stack is a potential point of failure. For a startup or an SME, managing a Redis cluster adds operational complexity and monthly cost. On AWS ElastiCache, an average Redis node costs between €30 and €150 per month depending on size. On Heroku, the bill climbs fast.
DHH and the Rails team asked a simple question: can modern relational databases replace Redis for 80% of use cases? The answer, in 2024, is yes, thanks to advances in SQLite and PostgreSQL.
The “One Person Framework” philosophy
Rails 8 pushes the vision of the One Person Framework to its maximum. The goal: let a single developer run a complete application in production without a dedicated DevOps team. Removing Redis by default fits this philosophy perfectly.
“The best infrastructure is the one you do not have to manage.” (DHH, RailsWorld 2024)
SQLite in production: the paradigm shift
Rails 8 rehabilitates SQLite for production. Thanks to Litestack and the optimizations in SQLite 3.45+, performance is now sufficient for many applications. WAL mode, concurrent connections and improved journaling change everything. The Solid Trifecta uses these capabilities natively.
A mature, tested ecosystem of gems
Solid Queue, Solid Cache and Solid Cable are not experiments. Basecamp and Hey.com, two reference applications in the Rails world, have used them in production since their release. These are battle-tested gems with thousands of requests per second under real load.
Solid Queue: background jobs without Redis
How Solid Queue works
Solid Queue is the native replacement for Redis-backed Sidekiq in Rails 8. It stores jobs in your primary database (or a dedicated SQLite database). Each job is a row in the database. Workers query this table through optimized SQL queries using SELECT FOR UPDATE SKIP LOCKED, a feature that has been available in PostgreSQL and MySQL for several years.
This approach removes the need for Redis while guaranteeing job persistence. Unlike with Redis, if your server restarts, pending jobs are not lost.
Configuration and activation in Rails 8
In a new Rails 8 project, Solid Queue is enabled by default. In an existing project, integration takes less than 10 minutes:
- Add the gem:
gem 'solid_queue'in your Gemfile. - Generate the migrations:
bin/rails solid_queue:install:migrations. - Configure queue_adapter:
config.active_job.queue_adapter = :solid_queue. - Start the supervisor:
bin/jobsstarts the workers automatically.
Solid Queue vs Sidekiq: an honest comparison
| Criterion | Solid Queue | Sidekiq (Redis) |
|---|---|---|
| External dependency | None (SQL database) | Redis required |
| Job persistence | Yes (SQL) | Optional (Sidekiq Pro) |
| Estimated maximum throughput | ~1,000 jobs/s | ~10,000 jobs/s |
| Infrastructure cost | €0 extra | €30-150/month (Redis) |
| Setup complexity | Very low | Medium |
| Native dashboard | Mission Control | Sidekiq Web |
Mission Control: the built-in dashboard
Rails 8 ships with Mission Control Jobs, a web interface mounted directly in your application. You can view queues, failed jobs and performance without a third-party tool. For applications processing fewer than 500,000 jobs per day, Solid Queue + Mission Control is more than enough.
Solid Cache and Solid Cable: native caching and real time
Solid Cache: the disk cache that surprises
Solid Cache replaces Redis as the backend for ActiveSupport::Cache. It stores cache entries in a SQLite database or a dedicated SQL database. The principle may seem counterintuitive (cache on disk, slower than memory), but benchmarks show surprising results.
On a modern NVMe SSD, Solid Cache reaches latencies of 0.5 to 2 ms per read. Local Redis runs at 0.1 ms. The difference is real but negligible for 95% of real use cases. On the other hand, Solid Cache offers almost unlimited storage capacity with no extra memory cost. Our Ruby on Rails agency can audit and implement the Solid Trifecta suited to your infrastructure.
“Solid Cache stores 10 times more data than Redis for the same cost, because disk is far cheaper than RAM.” (Nick Rees, Rails core contributor)
Configuring Solid Cache
Activation takes two steps in config/environments/production.rb:
- Define the store:
config.cache_store = :solid_cache_store. - Configure expiration: the
expiry_timeparameter for automatic TTL. - Optional: a dedicated database to isolate the cache from your business data.
For Rails projects that need advanced cache management, our team can support you. Contact Akolads for an audit of your stack.
Solid Cable: Action Cable without Redis
Solid Cable replaces the Redis adapter for Action Cable. It uses the database to propagate messages between the instances of your application. For applications with fewer than 1,000 simultaneous WebSocket connections, Solid Cable is a perfect fit.
Configuration is minimal. In config/cable.yml, replace the Redis adapter with:
- Adapter:
solid_cable - Polling interval: 0.1 second by default (configurable)
- Database: your primary database or a dedicated one
Limits to know before adopting Solid Cable
Solid Cable uses SQL polling, not a native pub/sub mechanism like Redis. Latency is slightly higher: 100 to 200 ms compared with less than 10 ms with Redis. For high-frequency real-time chat applications or financial data streams, Redis remains preferable. For notifications, status updates or dashboards, Solid Cable excels.
Migrating from Redis to the Solid Trifecta in production
Assessing your current Redis dependency
Before migrating, map all your Redis uses. Most applications use Redis for three reasons: background jobs (Sidekiq), cache (Redis store) and Action Cable. For each use, assess volume and criticality. If you process more than 1 million jobs per day, keep Sidekiq. Otherwise, Solid Queue is enough.
To go further on Rails development strategy, read our guide: Ruby on Rails 2026: the pro guide to shipping fast.
A 4-step migration plan
- Step 1 (Solid Queue): migrate the jobs first. Install the gem, create the tables, redirect ActiveJob to Solid Queue. Keep Sidekiq active until the existing queues have finished draining.
- Step 2 (Solid Cache): switch the cache store in production. Test on a staging environment. The cache is stateless: the migration is risk-free.
- Step 3 (Solid Cable): update config/cable.yml. Test all the real-time features. The switch is instant.
- Step 4 (removing Redis): once the three gems are validated, remove Redis from your infrastructure. Save on your cloud bill immediately.
Impact on infrastructure costs
A typical Rails application hosted on Fly.io or Render uses a Redis node at 25-50 USD per month. With the Solid Trifecta, this cost drops to zero. Over 3 years, the saving exceeds 1,800 USD for a single application. For a portfolio of 5 applications, the annual saving reaches 3,000 USD.
These savings come on top of reduced DevOps time. With no Redis to monitor, update and secure, your developers focus on business value. Fewer services also means lighter, less costly Rails application maintenance. To understand the overall costs of a Rails project, read our article: Ruby on Rails Application Cost in 2026: Rates and Budget.
Best practices for the Solid Trifecta in production
A few recommendations from the field:
- Dedicated database for the cache: isolate Solid Cache in a separate SQLite database to avoid I/O conflicts with your business data.
- SQL monitoring: add alerts on the size of the Solid Queue tables. A queue that grows without emptying points to a worker problem.
- Aggressive TTL: configure short TTLs on Solid Cache (24 hours maximum) to avoid uncontrolled growth of the SQLite file.
- Regular backups: unlike with Redis, your jobs and cache now live in SQL files. Include them in your backup strategy.
FAQ
Can Rails 8 Solid Queue replace Sidekiq in production?
For most applications processing fewer than 1 million jobs per day, Solid Queue is a worthwhile replacement for Sidekiq. It offers native persistence, a built-in dashboard (Mission Control) and zero external dependencies.
For very high volumes or advanced needs such as rate limiting or complex priority queues, Sidekiq Pro remains a relevant option.
Is Solid Cache really slower than Redis?
Yes, slightly: 0.5 to 2 ms of latency compared with 0.1 ms for local Redis. But this difference is imperceptible to the end user in almost all cases.
On the other hand, Solid Cache offers far greater storage capacity at no cost. For applications with large cache volumes, it is often a better overall choice.
Does Solid Cable support complex real-time applications?
Solid Cable is suitable for notifications, status updates and dashboards with fewer than 1,000 simultaneous connections. Its latency of 100 to 200 ms is acceptable for these cases.
For trading applications, high-frequency chat or multiplayer games, Redis remains recommended for its latency below 10 ms.
How do you migrate from Redis to the Solid Trifecta without service interruption?
The migration is done in 4 gradual steps: Solid Queue first (in parallel with Sidekiq), then Solid Cache (stateless, risk-free migration), then Solid Cable, and finally the removal of Redis.
Each step can be deployed independently. There is no requirement to migrate everything at once.
Does the Solid Trifecta work with PostgreSQL or only SQLite?
The Solid Trifecta works with SQLite, PostgreSQL and MySQL. You can use your primary database or dedicated databases for each component.
SQLite is recommended for small projects and single-server deployments. PostgreSQL is preferable for distributed multi-server architectures.