Que VS neoq

Compare Que vs neoq and see what are their differences.

Que

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

neoq

Queue-agnostic background job library for Go, with a pleasant API and powerful features. (by acaloiaro)
InfluxDB - Power Real-Time Data Analytics at Scale
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.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
Que neoq
10 5
2,287 243
0.2% -
5.6 8.3
7 days ago 13 days ago
Ruby Go
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.

neoq

Posts with mentions or reviews of neoq. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-08.
  • Show HN: Hatchet – Open-source distributed task queue
    22 projects | news.ycombinator.com | 8 Mar 2024
  • Choose Postgres Queue Technology
    17 projects | news.ycombinator.com | 24 Sep 2023
    I just want to commend OP - if they’re here - for choosing an int64 for job IDs, and MD5 for hashing the payload in Neoq, the job library linked [0] from the article.

    Especially given the emphasis on YAGNI, you don’t need a UUID primary key, and all of its problems they bring for B+trees (that thing RDBMS is built on), nor do you need the collision resistance of SHA256 - the odds of you creating a dupe job hash with MD5 are vanishingly small.

    As to the actual topic, it’s fine IFF you carefully monitor for accumulating dead tuples, and adjust auto-vacuum for that table as necessary. While not something you’d run into at the start, at a modest scale you may start to see issues. May. You may also opt to switch to Redis or something else before that point anyway.

    [0]: https://github.com/acaloiaro/neoq

  • Ask HN: Tell us about your project that's not done yet but you want feedback on
    68 projects | news.ycombinator.com | 16 Aug 2023
    Neoq (https://github.com/acaloiaro/neoq) is a background job processor for Go.

    Yes, another one. It began from my desire to have a robust Postgres-backed job processor. What I quickly realized was that the interface in front of the queue was what was really important. This allowed me to add both in-memory and Redis (provided by asynq) backends behind the same interface. Which allows dependent projects to switch between different backends in different settings/durable requirements. E.g. in-memory for testing/development, postgres when you're not running Google-scale jobs, and Redis for all the obvious use cases for a Redis-backed queue.

    This allows me to swap out job queue backends without changing a line of job processor code.

    I'm familiar with the theory that one shouldn't implement queues on Postgres, and to a large extent, I disagree with those theories. I'm confident you can point out a scenario in which one shouldn't, and I contend that those scenarios are the exception rather than the rule.

  • Examples of using task scheduler with Go?
    8 projects | /r/golang | 3 Jun 2023
    I created a background processor called Neoq (https://github.com/acaloiaro/neoq) that is likely to interest you.
  • SQL Maxis: Why We Ditched RabbitMQ and Replaced It with a Postgres Queue
    16 projects | news.ycombinator.com | 11 Apr 2023
    This is exactly the thesis behind neoq: https://github.com/acaloiaro/neoq

What are some alternatives?

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

Sidekiq - Simple, efficient background processing for Ruby

starqueue

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

oban - 💎 Robust job processing in Elixir, backed by modern PostgreSQL and SQLite3

Delayed::Job - Database based asynchronous priority queue system -- Extracted from Shopify

tembo - Monorepo for Tembo Operator, Tembo Stacks, and Tembo CLI

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

Asynq - Simple, reliable, and efficient distributed task queue in Go

Karafka - Ruby and Rails efficient multithreaded Kafka processing framework

pgtt - PostgreSQL extension to create, manage and use Oracle-style Global Temporary Tables and the others RDBMS

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

pgjobq - Atomic low latency job queues running on Postgres