
Solid Queue
SQL-backed Active Job backend for Rails, no Redis required.
Replaces Sidekiq

Who it's for
Solid Queue is the default Active Job backend for new Rails 8 applications, pre-configured out of the box. Teams upgrading from earlier Rails versions can add it in two commands and have background processing running in the same database they already manage.
Skip if your team has established Sidekiq operational experience and relies on Sidekiq-specific features like unique jobs that have no equivalent in Solid Queue.
Teams paying for managed Redis hosting just for Sidekiq can eliminate that dependency by switching to Solid Queue. The migration path is incremental: set `self.queue_adapter = :solid_queue` on individual job classes and move one job at a time, leaving others on Sidekiq until the cutover is complete.
Skip if you depend on Sidekiq Pro or Enterprise features such as unique jobs, rate limiting, or Sidekiq's built-in web dashboard and do not want to add mission_control-jobs as a replacement.
Applications deployed to a single server using SQLite (common with Kamal-based setups) can use Solid Queue on the same SQLite database or a dedicated SQLite queue database. No Redis process is needed, keeping the production environment to a single Rails server run via the Puma plugin.
Skip if your workload will grow to require multiple job workers on separate machines; SQLite is not designed for high-concurrency writes from multiple processes.
The problem
Running background jobs in Rails has historically required Redis as a separate data store. Teams add Redis alongside their application database, then manage two persistence layers: keeping Redis available, monitoring its memory, and tuning its persistence settings adds operational work that grows with the application. For SQLite-based deployments, single-server setups, or early-stage projects, a Redis dependency can complicate a production stack that otherwise needs only one database. Advanced features in Sidekiq, the established paid tool for Rails background jobs, also require a commercial Pro or Enterprise license, adding per-process cost that grows with application scale.
How it works
Jobs are stored in SQL tables alongside application data, using MySQL, PostgreSQL, or SQLite. The `FOR UPDATE SKIP LOCKED` clause, available on MySQL 8+, MariaDB 10.6+, and PostgreSQL 9.5+, prevents lock contention when multiple workers poll the same queue. SQLite works for smaller deployments without that clause.
Limit how many instances of a job run at the same time, or block certain jobs from running concurrently with each other. The dispatcher handles unblocking held jobs on a configurable maintenance interval, defaulting to 600 seconds. This replaces application-level mutex patterns for jobs that must not overlap.
Define cron-like recurring tasks in `config/recurring.yml`. The scheduler process reads this file and enqueues jobs when they come due, handling the full Active Job lifecycle including retries. Dynamic scheduling, allowing recurring tasks to be created and modified at runtime, requires the optional scheduler configuration with `dynamic_tasks_enabled: true`.
Group multiple related jobs into a batch and monitor collective progress or completion. Solid Queue includes batch support, batch progress counters, and maintenance for stalled batches. This functionality is included in the MIT license, while Sidekiq requires a Pro tier subscription for comparable batch features.
Run `bin/jobs` on multiple machines to scale horizontally without coordination overhead. Each process runs its own supervisor, which forks workers and dispatchers according to the configuration. Workers can be assigned to specific queues or queue prefixes, and multiple worker processes can share a queue configuration using the `processes` count setting.
Supports Active Job's `perform_all_later` via `enqueue_all`, which inserts multiple jobs in a single database operation. This is faster than enqueuing jobs one at a time in a loop when preparing large batches of work. Compatible with any Active Job subclass.
Features
- SQL-native queue storage, no Redis
- Concurrency controls per job class
- Recurring tasks via config file
- Batch jobs with progress tracking
- Horizontal scaling with multiple workers
- Bulk enqueuing via enqueue_all
How to install
Install Solid Queue as a Ruby gem for background job processing in Rails.
gem install solid_queueRecommended for this setup
Strengths
- MIT license covers all features: Every feature, including concurrency controls, batch jobs, recurring tasks, and bulk enqueuing, is available under the MIT license with no commercial tier. Sidekiq requires a Pro license for batches and unique jobs, or an Enterprise license for rate limiting. Solid Queue ships all of this at no cost.
- Default in Rails 8, zero extra config: New Rails 8 applications include Solid Queue pre-configured as the Active Job backend. No gems to add, no generator to run; it is set up out of the box. Teams on Rails 7.1 or 7.2 can add it manually with two commands and a database.yml entry.
- FOR UPDATE SKIP LOCKED prevents polling contention: On MySQL 8+, MariaDB 10.6+, and PostgreSQL 9.5+, Solid Queue uses `FOR UPDATE SKIP LOCKED` to let workers move past rows already claimed by another process, rather than waiting on a lock. This allows multiple workers to poll the same queue concurrently without blocking each other at peak throughput.
- Single or dedicated queue database options: By default, Solid Queue stores queues in a dedicated database, keeping queue I/O separate from application data. For small projects or SQLite deployments, the single-database configuration skips the second database entirely by migrating the queue schema into the main application database.
Trade-offs
- Dedicated queue database requires extra setup: The recommended configuration uses a separate database for queue tables, which requires adding entries to `config/database.yml` and running `db:prepare` to initialize the queue schema. This is a one-time setup step, but it adds complexity for teams new to Rails multiple-database configurations.
- No built-in web dashboard: Solid Queue ships no dashboard for inspecting queues, retrying failed jobs, or discarding stale ones. The README recommends `mission_control-jobs`, a separate gem from the Rails organization, for a web UI. Teams migrating from Sidekiq Pro lose the built-in dashboard unless they add this extra dependency.
- SQL polling increases database query volume: Workers poll the queue database on a configurable interval, defaulting to 0.1 seconds. High worker counts or short polling intervals on a shared database can generate meaningful query load. The recommended mitigation is a dedicated queue database, which also keeps queue I/O off the application's primary database.
Tech stack
FAQ
No. Solid Queue stores all job data in a SQL database, using MySQL, PostgreSQL, or SQLite. Redis is not required or used at any stage. This is the primary reason teams switch from Sidekiq: they can run job processing without maintaining a separate Redis instance.
Yes. Rails 8 includes Solid Queue as the default Active Job backend, pre-configured in new applications. For Rails 7.1 and 7.2, you can add it manually: run `bundle add solid_queue` and `bin/rails solid_queue:install` to generate the configuration files and queue database schema.
Yes, the migration can be done incrementally. Set `self.queue_adapter = :solid_queue` on individual job classes to move them one at a time, leaving other jobs on Sidekiq. Run both backends in parallel until all jobs are on Solid Queue, then remove Sidekiq and Redis. The README documents this incremental adoption path.
Solid Queue supports MySQL, PostgreSQL, and SQLite. The `FOR UPDATE SKIP LOCKED` clause, which prevents lock contention across multiple workers, is available on MySQL 8+, MariaDB 10.6+, and PostgreSQL 9.5+. SQLite works without that clause and is suitable for smaller deployments with a single worker process.
Solid Queue relies on Active Job for retries, discarding, and error handling. Configure retry behavior using Active Job's standard `retry_on` and `discard_on` class-level macros in each job class. Failed jobs can be inspected and retried via the mission_control-jobs dashboard if installed, or programmatically via the job record.