Solid Queue keeps jobs in a separate database, and development needs its own setup
Database-backed Active Job backend
At a glance
- What is it?
- rails/solid_queue is the database-backed Active Job backend that ships configured in new Rails 8 apps. Its install wires up production only, wants a dedicated queue database, and adds batches in v1.7.0 and fiber execution in v1.6.0.
- Who is it for?
- Adopt Solid Queue if you run Rails 7.1 or later, already operate MySQL, PostgreSQL or SQLite, and want background jobs without a separate Redis service. Look elsewhere if you are on an older Rails or Ruby, or need documented throughput numbers, since the README gives none and offers no comparison with other backends.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 22 days ago.
- What is it written in?
- Mainly Ruby, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.
Star history
- rails/solid_queue2,510 ★ · +8
| Repository | 2026-10-08 | 2026-11-25 |
|---|---|---|
| rails/solid_queue | 2.5k | 2.5k |
8 Stars in the last 48 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
Solid Queue leaves retries to Active Job and uses SKIP LOCKED to poll
Solid Queue is a database-based queuing backend for Active Job. Beyond plain enqueuing and processing, the README lists delayed jobs, concurrency controls, recurring jobs, pausing queues, numeric priorities per job, priorities by queue order, and bulk enqueuing through enqueue_all, the backend side of Active Job's perform_all_later.
The storage is any SQL database: MySQL, PostgreSQL or SQLite. Where the database supports it, Solid Queue uses the FOR UPDATE SKIP LOCKED clause, so workers polling for jobs do not block and wait on each other's locks. The phrase if available matters, because it means a database without that clause still works but without that behavior.
What Solid Queue does not implement is job semantics. Retries, discarding, error handling, serialization and delays are delegated to Active Job, so a retry_on declaration in your job class is what governs failures, not a Solid Queue setting. The library is also described as compatible with Rails multi-threading. The README states design goals of simplicity and performance, and publishes no benchmark for either.
Rails 8 ships it configured, and older apps run two commands
New Rails 8 applications have Solid Queue configured by default. Earlier applications add it by hand:
bundle add solid_queue
bin/rails solid_queue:installThe minimum supported versions are Rails 7.1 and Ruby 3.2, so an app on Rails 7.0 or Ruby 3.1 cannot adopt it without an upgrade first.
The install task makes Solid Queue the production Active Job backend and creates four files: config/queue.yml, config/recurring.yml, db/queue_schema.rb and a bin/jobs executable wrapper used to start it. It also adds a connects_to line to config/environments/production.rb, which is the detail that matters in the next section.
After configuring the database, run db:prepare in production so the database is created and the schema loaded. Then start bin/jobs on the machine doing the work, which processes all queues with the default configuration. The README notes that future schema changes arrive as regular migrations, and an UPGRADING.md file sits at the top level.
The queue lives in its own database entry with a separate migrations path
Solid Queue expects a second database entry named queue in config/database.yml, with migrations_paths set to db/queue_migrate. For SQLite in production the README shows:
production:
primary:
<<: *default
database: storage/production.sqlite3
queue:
<<: *default
database: storage/production_queue.sqlite3
migrations_paths: db/queue_migrateFor MySQL, PostgreSQL or Trilogy, the queue entry reuses the primary connection settings through a YAML anchor, with database app_production_queue and the same migrations_paths. The password in that example comes from the APP_DATABASE_PASSWORD environment variable.
Separating the database has a cost. Jobs and application data no longer share a transaction by default, and a deployment now has two schemas to prepare and migrate. The table of contents includes a section on jobs and transactional integrity for exactly this reason, so read it before enqueuing jobs inside a transaction that other code depends on.
The benefit is that queue traffic and polling load are kept off the primary database, though the README gives no numbers on how much.
The installer touches production.rb only, so development jobs sit unprocessed
Running solid_queue:install adds config.solid_queue.connects_to = { database: { writing: :queue } } to production.rb and nothing else. Development and staging need the same wiring by hand. In development.rb:
# Use Solid Queue in Development.
config.active_job.queue_adapter = :solid_queue
config.solid_queue.connects_to = { database: { writing: :queue } }The SQLite development setup also wraps the existing entry in a primary key and adds a queue entry with its own storage/development_queue.sqlite3 file and the db/queue_migrate path. Then run db:prepare once.
Jobs still need a process to run them. In development, the Puma plugin can do it, enabled in puma.rb:
# You can either set the env var, or check for development
plugin :solid_queue if ENV["SOLID_QUEUE_IN_PUMA"] || Rails.env.development?You can also run bin/jobs, with a catch: the default logger writes to log/development.log, so the terminal stays silent. The README suggests setting config.solid_queue.logger to an ActiveSupport::Logger writing to STDOUT.
One more dependency can surprise you. An app that uses Action Cable, or anything built on it such as Turbo Streams, also has to move to a database adapter. The README's example changes config/cable.yml from the async adapter to solid_cable with a cable database.
Scaling is more machines running bin/jobs, split between dispatchers and workers
For a small project, Solid Queue can run on the same machine as the web server. To scale, the README says it supports horizontal scaling out of the box: put it on a separate server, or run bin/jobs on several machines at once.
The process model has three roles named in the table of contents: workers, dispatchers and a scheduler. Depending on configuration, some machines can be designated to run only dispatchers or only workers. A section titled Fork vs. async mode covers how those processes are hosted, and one on threads, processes and signals covers shutdown behavior. Their settings live in config/queue.yml.
Other sections listed there cover queue order and priorities, queues specification and performance, lifecycle hooks, errors when enqueuing, failed jobs and retries, and jobs interrupted by non-graceful process death. That last heading is worth reading if your workers run on infrastructure that kills processes without warning, since it describes what happens to a job in flight.
The excerpt of the README reproduced for this article ends before those sections, so settings and defaults are left to the README itself.
Fibers arrived in v1.6.0 and batches in v1.7.0, within three weeks
Three recent tags show the pace. v1.5.1 was released on 29 July 2026. v1.6.0 followed on 31 July with the title fiber execution mode (with Async). v1.7.0 came on 21 August and is titled batches.
The fiber mode ties in with the Fork vs. async mode section of the README, and batches have their own heading with sub-sections on progress and counters, maintenance, clearing batches and upgrading existing installations. The last of these implies that adding batches to an existing install involves an extra step, so follow it rather than only bumping the gem version.
A Dashboard UI Setup section also exists, along with an Incremental adoption section for moving from another backend gradually and a High performance requirements section for heavier loads. Their contents are not reproduced here.
The repository is not archived. The last push was on 12 September 2026, and the license is MIT, held in MIT-LICENSE.
Tests run against MySQL 8.0.31 and PostgreSQL 15.1 with authentication switched off
The repository's docker-compose.yml starts two services for development. mysql uses the image mysql:8.0.31 with MYSQL_ALLOW_EMPTY_PASSWORD set to yes, bound to 127.0.0.1 port 33066. postgres uses postgres:15.1 with POSTGRES_HOST_AUTH_METHOD set to trust, bound to 127.0.0.1 port 55432. Both share one volume named db.
Those settings suit a test machine and nothing else. Empty passwords and trust authentication should never be copied into a real deployment, and both ports are bound to the loopback address to keep them private.
The top level also has an Appraisals file and a gemfiles folder, which indicate the gem is exercised against several dependency sets, plus a .ruby-version file, .rubocop.yml, a .devcontainer folder and a test directory. The gemspec is solid_queue.gemspec.
The pinned image versions say little about supported database versions for your own use. The README text covers the databases by name and gives no minimum version for MySQL or PostgreSQL, so check that FOR UPDATE SKIP LOCKED is available on yours.
Editorial conclusion
Adopt Solid Queue if you run Rails 7.1 or later, already operate MySQL, PostgreSQL or SQLite, and want background jobs without a separate Redis service. Look elsewhere if you are on an older Rails or Ruby, or need documented throughput numbers, since the README gives none and offers no comparison with other backends. Before relying on it, run db:prepare for the queue database in every environment where jobs must run, because the installer only configures production.
Frequently asked questions
What is a solid queue in Rails?
Solid Queue is a database-based queuing backend for Active Job, designed with simplicity and performance in mind. It works with MySQL, PostgreSQL or SQLite and is configured by default in new Rails 8 applications.
How to run a solid queue?
Run bin/jobs on the server doing the work, after db:prepare has created the queue database. It starts processing jobs in all queues with the default configuration, and in development the Puma plugin can start it instead.
Is Solid Queue faster than Sidekiq?
The README does not compare Solid Queue with Sidekiq, GoodJob, Delayed Job or Redis. It states a goal of performance and gives no benchmark figures.
What is solid queue in Rails, and which versions does it need?
The minimum supported versions are Rails 7.1 and Ruby 3.2. New Rails 8 applications have Solid Queue configured by default.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/rails-solid-queue)Star history chart for your README
[](https://hysenlabs.com/projects/rails-solid-queue)Was this useful?