Que VS starqueue

Compare Que vs starqueue and see what are their differences.

Que

A Ruby job queue that uses PostgreSQL's advisory locks for speed and reliability. (by que-rb)
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 starqueue
10 4
2,287 0
0.2% -
5.6 10.0
7 days ago about 1 year ago
Ruby Python
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.

starqueue

Posts with mentions or reviews of starqueue. 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
    MS SQL server, Postgres and MySQL all support SKIP LOCKED, which means they are all suitable for running queues.

    I built a complete implementation in Python designed to work the same as SQS but be more simple:

    https://github.com/starqueue/starqueue

    Alternatively if you just want to quickly hack something into your application, here is a complete solution in Python with retries:

        import psycopg2
  • SQL Maxis: Why We Ditched RabbitMQ and Replaced It with a Postgres Queue
    16 projects | news.ycombinator.com | 11 Apr 2023
    I wrote a message queue in Python called StarQueue.

    It’s meant to be a simpler reimagining of Amazon SQS.

    It has an HTTP API and behaves mostly like SQS.

    I wrote it to support Postgres, Microsoft’s SQL server and so MySQL because they all support SKIP LOCKED.

    At some point I turned it into a hosted service and only maintained the Postgres implementation though the MySQL and SQL server code is still in there.

    It’s not an active project but the code is at https://github.com/starqueue/starqueue/

  • Show Reddit: StarQueue - Postgres database backed message queue server for Python
    1 project | /r/Python | 28 Feb 2023
  • Show HN: StarQueue database backed message queue server for Python
    1 project | news.ycombinator.com | 28 Feb 2023
    Hi folks,

    This is a project I wrote and since I am doing nothing with it any more I thought I would publish the source code in case anyone finds it interesting.

    https://github.com/starqueue/starqueue/

    StarQueue is a message queue server written in Python.

    It is designed to be a more simple copy of Amazon Simple Queue Server.

    Clients access it via HTTP. The API is documented at https://github.com/starqueue/starqueue/tree/main/starqueueserver/website

    The database is Postgres.

    When I developed it initially, I included seamless support for Postgres, MySQL and Microsoft SQL server.

    At some point in the development I gave up on all databases except Postgres, though I have left the MySQL and SQL server code in place.

    I deployed StarQueue as an online service at one point (no longer online). This github repo is a copy of the source code for that service.

    This project is not live and is archived, but I have posted it here in case anyone finds the source code interesting.

What are some alternatives?

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

Sidekiq - Simple, efficient background processing for Ruby

neoq - Queue-agnostic background job library for Go, with a pleasant API and powerful features.

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

pg-boss - Queueing jobs in Node.js using PostgreSQL like a boss

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

kubeblocks - KubeBlocks is an open-source control plane that runs and manages databases, message queues and other data infrastructure on K8s.

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

BeanstalkD - Beanstalk is a simple, fast work queue.

Karafka - Ruby and Rails efficient multithreaded Kafka processing framework

tqs - Tiny Queue Service (Server)

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

worker - High performance Node.js/PostgreSQL job queue (also suitable for getting jobs generated by PostgreSQL triggers/functions out into a different work queue)