Que VS Delayed::Job

Compare Que vs Delayed::Job and see what are their differences.

Que

A Ruby job queue that uses PostgreSQL's advisory locks for speed and reliability. (by que-rb)

Delayed::Job

Database based asynchronous priority queue system -- Extracted from Shopify (by collectiveidea)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
Que Delayed::Job
10 10
2,284 4,802
0.3% 0.1%
6.0 2.1
24 days ago 2 months ago
Ruby Ruby
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

Que

Posts with mentions or reviews of Que. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-24.
  • Choose Postgres Queue Technology
    17 projects | news.ycombinator.com | 24 Sep 2023
    > Can you define "low throughput"?

    <1000 messages per minute

    Not saying SKIP LOCKED can't work with that many. But you'll probably want to do something better.

    FWIW, Que uses advisory locks [1]

    [1] https://github.com/que-rb/que

  • Introducing tobox: a transactional outbox framework
    2 projects | /r/ruby | 29 Apr 2023
    Probably worth mentioning that aside from delayed_job there are at least two more modern alternatives backed by the DB: Que and good_job.
  • Sidekiq jobs in ActiveRecord transactions
    2 projects | /r/rails | 27 Apr 2023
    Good article. Sidekiq is a good, well respected too. However if you are starting out I would recommend not using it, and instead choosing a DB based queue system. We have great success with que, but there are others like good_job.
  • SQL Maxis: Why We Ditched RabbitMQ and Replaced It with a Postgres Queue
    16 projects | news.ycombinator.com | 11 Apr 2023
    (not sure why this comment was dead, I vouched for it)

    There are a lot of ways to implement a queue in an RDBMS and a lot of those ways are naive to locking behavior. That said, with PostgreSQL specifically, there are some techniques that result in an efficient queue without locking problems. The article doesn't really talk about their implementation so we can't know what they did, but one open source example is Que[1]. Que uses a combination of advisory locking rather than row-level locks and notification channels to great effect, as you can read in the README.

    [1]: https://github.com/que-rb/que

  • Delayed Job vs. Sidekiq: Which Is Better?
    13 projects | news.ycombinator.com | 16 Feb 2022
    https://github.com/que-rb/que

    This one seems to be the most performant. By a lot too, from my understanding (haven't ran any benchmark myself, but the readme shows some good postgres knowledge)

  • Sidekiq VS Que - a user suggested alternative
    2 projects | 3 Feb 2022
    Que seems like a good alternative if one doesn't want to use Reids. However, given that most apps need Redis (and have it within their infrastructure) nowadays, I still think that Sidekiq is the better option in the generic case.
  • Devious SQL: Message Queuing Using Native PostgreSQL
    7 projects | news.ycombinator.com | 28 Jan 2022
    Implementations that use advisory locks like https://github.com/que-rb/que are much more efficient (atleast when I last tested) and will easily reach 10k job/s on even very modest hardware.

    There is a Go port of Que but you can also easily port it to any language you like. I have a currently non-OSS implementation in Rust that I might OSS someday when I have time to clean it up.

  • Postgres is a great pub/sub and job server
    11 projects | news.ycombinator.com | 17 Dec 2021
    It’s also possible to use advisory locks to implement a job queue in Postgres. See e.g. Que[1]. Note there are a fair number of corner cases, so studying Que is wise if trying to implement something like this, as well as some (a bit older) elaboration[2].

    We implemented a similar design to Que for a specific use case in our application that has a known low volume of jobs and for a variety of reasons benefits from this design over other solutions.

    [1]: https://github.com/que-rb/que

  • Ruby Schedulers: Whenever vs Sidekiq Cron vs Sidekiq Scheduler
    2 projects | /r/ruby | 3 May 2021
    Do also take into consideration que-scheduler (disclaimer, am author). It is built on top of the robust que async job system.

Delayed::Job

Posts with mentions or reviews of Delayed::Job. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-04-18.
  • How to narrow down race condition in delayed job/mysql2?
    1 project | /r/rails | 31 Jan 2023
    I included this in the github issue but we had coverband induced log spam, it got fixed and suddenly we hit the bug. I did find this from someone with a similar issue but there was no conclusion.
  • How to run a really long task from a Rails web request
    3 projects | dev.to | 18 Apr 2022
    So how do we trigger such a long-running process from a Rails request? The first option that comes to mind is a background job run by some of the queuing back-ends such as Sidekiq, Resque or DelayedJob, possibly governed by ActiveJob. While this would surely work, the problem with all these solutions is that they usually have a limited number of workers available on the server and we didn’t want to potentially block other important background tasks for so long.
  • Delayed Job vs. Sidekiq: Which Is Better?
    5 projects | dev.to | 8 Mar 2022
    Several gems support job queues and background processing in the Rails world — Delayed Job and Sidekiq being the two most popular ones.
    13 projects | news.ycombinator.com | 16 Feb 2022
    Rails 7 support only just got added https://github.com/collectiveidea/delayed_job/pull/1161
  • Why does rails have a tradition of queuing background jobs in a separate NoSQL store, when both the queueing controller and the job class tend to hammer the main database anyway?
    3 projects | /r/rails | 28 Dec 2021
    Back in the day, before Sidekiq and such, we used Delayed Job https://github.com/collectiveidea/delayed_job
  • A quick look at background jobs in Ruby
    1 project | dev.to | 11 Mar 2021
    There are a few of popular systems. A few need a database, such as Delayed::Job, while others prefer Redis, such as Resque and Sidekiq.
  • Schedule background jobs in Rails with Integromat
    2 projects | /r/rails | 14 Feb 2021
    I always wad a fan of Sidekiq, but recently I wanted to remove redis as a dependency. I ended up going back to classic delayed_job. My reason for that was I also didn't want dependency with Postgres, as I like to use sqlite on development and Postgres on production. The best solution I've seen is Que, which works with Postgres. It is complete, has all the features you need.
  • Background Job Processing in Ruby without external libraries and dependencies
    1 project | dev.to | 1 Jan 2021
    Ruby gets hammered a lot for its green threads and no real concurrency yet Ruby libraries such as Resque, Delayed Job and Sidekiq are some of the most popular choices to run background jobs in the industry. When you have a huge project and millions of requests and hundreds of thousands of operations to perform, reach out to one of these solutions which are feature complete and you don’t have to reinvent the wheel as its complex piece of software to implement and requires thousands of human hours. While they help you scale sometimes they are not what you are looking for or need as they are meant for a scale of 10000s of jobs per second and what you need is a background processing for few jobs that can be handled in memory without a dependency of a queue such as Redis. If you look at the benchmark numbers from Sidekiq they are for 100K jobs because that is the scale it is meant to be though one can use it for running a few hundred complex jobs as well where you require queue management and supervision.
  • Digital Ocean App Platform vs Heroku
    2 projects | dev.to | 24 Dec 2020
    Before we dive in, I wanted to go over my background real quick for context. I'm mostly a Rails developer professionally, and I am on the 'Infrastructure' team at work, so I integrate closely with Heroku and am pretty familiar with their product and offerings. Given my Rails background, this article will focus on deploying a web app with at least one background job process. For my hackathon app, I had a web process running Puma and a worker process running DelayedJob.

What are some alternatives?

When comparing Que and Delayed::Job you can also consider the following projects:

Sidekiq - Simple, efficient background processing for Ruby

good_job - Multithreaded, Postgres-based, Active Job backend for Ruby on Rails.

Sucker Punch - Sucker Punch is a Ruby asynchronous processing library using concurrent-ruby, heavily influenced by Sidekiq and girl_friday.

Resque - Resque is a Redis-backed Ruby library for creating background jobs, placing them on multiple queues, and processing them later.

Karafka - Ruby and Rails efficient multithreaded Kafka processing framework

Shoryuken - A super efficient Amazon SQS thread based message processor for Ruby

Sneakers - A fast background processing framework for Ruby and RabbitMQ

RocketJob - Ruby's missing background and batch processing system