Que

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

Que Alternatives

Similar projects and alternatives to Que

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better Que alternative or higher similarity.

Que reviews and mentions

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.
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 26 Apr 2024
    Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more β†’

Stats

Basic Que repo stats
10
2,284
6.0
24 days ago

que-rb/que is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of Que is Ruby.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com