arniesmtpbufferserver VS Que

Compare arniesmtpbufferserver vs Que 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
arniesmtpbufferserver Que
6 10
13 2,287
- 0.2%
2.4 5.6
7 months ago 8 days ago
Python 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.

arniesmtpbufferserver

Posts with mentions or reviews of arniesmtpbufferserver. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-24.
  • Arnie – SMTP buffer server in – 100 lines of async Python
    1 project | news.ycombinator.com | 7 Mar 2024
  • Choose Postgres Queue Technology
    17 projects | news.ycombinator.com | 24 Sep 2023
    My guess is that many people are implementing queuing mechanisms just for sending email.

    The Linux file system makes a perfectly good basis for a message queue since file moves are atomic.

    You can see how this works in Arnie SMTP buffer server, a super simple queue just for emails, no database at all, just the file system.

    https://github.com/bootrino/arniesmtpbufferserver

  • Things Unix can do atomically (2010)
    1 project | news.ycombinator.com | 14 Aug 2023
    A practical applications of atomic mv is building simple file based queuing mechanisms.

    For example I wrote this SMTP buffer server which moves things to different directories as a simple form of message queue.

    https://github.com/bootrino/arniesmtpbufferserver

    Caveat I think this needs examination from the perspective of fsync - i.e. I suspect the code should be fsyncing at certain points but not sure.

    I actually wrote (in Rust) a simple file based message queue using atomic mv. It instantly maxed out the SSD performance at about 30,000 messages/second.

  • Procrastinate: PostgreSQL-Based Task Queue for Python
    2 projects | news.ycombinator.com | 29 Jan 2022
    Yeah I was using Celery for sending emails - nothing else.

    And it was such a nightmare to configure and debug and such overkill for email buffering that in a fit of frustration I wrote the Arnie SMTP buffering server and ditched Celery.

    https://github.com/bootrino/arniesmtpbufferserver

    It's only 100 lines of code:

    https://github.com/bootrino/arniesmtpbufferserver/blob/maste...

  • Show HN: Arnie SMTP buffer server in 100 lines of async Python
    1 project | news.ycombinator.com | 18 Oct 2021
    Here's the 100 lines of code:

    https://github.com/bootrino/arniesmtpbufferserver/blob/master/arniesmtpbufferserver.py

    Here's the github repo:

    https://github.com/bootrino/arniesmtpbufferserver

    It's MIT licensed.

    Arnie is a server that has the single purpose of buffering outbound SMTP emails.

    A typical web SAAS needs to send emails such as signup/signin/forgot password etc.

    The web page code itself should not directly write this to an SMTP server. Instead they should be decoupled. There's a few reasons for this. One is, if there is an error in sending the email, then the whole thing simply falls over if that send was executed by the web page code - there's no chance to resend because the web request has completed. Also, execution of an SMTP request by a web page slows the response time down of that page, whilst the code goes through the process of connecting to the server and sending the email. So when you send SMTP email from your web application, the most performant and safest way to do it is to buffer them for sending. The buffering server will then queue them and send them and handle things like retries if the target SMTP server is down or throttled.

    There's a few ways to solve this problem - you can set up a local email server and configure it for relaying. Or in the Python world people often use Celery. Complexity is the down side of using either Celery or an email server configured for relaying - both of these solutions have many more features than needed and can be complex to configure/run/troubleshoot.

    Arnie is intended for small scale usage - for example a typical web server for a simple SAAS application. Large scale email traffic would require parallel sends to the SMTP server.

    Arnie sequentially sends emails - it does not attempt to send email to the SMTP server in parallel. It probably could do fairly easily by spawning email send tasks, but SMTP parallelisation was not the goal in writing Arnie.

  • Arnie - SMTP buffer server in ~ 100 lines of async Python
    1 project | /r/Python | 17 Oct 2021

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.

What are some alternatives?

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

starqueue

Sidekiq - Simple, efficient background processing for Ruby

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

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

pgjobq - Atomic low latency job queues running on Postgres

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

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

RocketJob - Ruby's missing background and batch processing system

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

March Hare - Idiomatic, fast and well-maintained JRuby client for RabbitMQ