sql-task-queue
sorg
sql-task-queue | sorg | |
---|---|---|
1 | 1 | |
10 | 474 | |
- | - | |
10.0 | 9.4 | |
over 4 years ago | 3 days ago | |
PLpgSQL | Go | |
Apache License 2.0 | MIT License |
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.
sql-task-queue
-
Postgres is a great pub/sub and job server
> This is fantastic for relatively low volume queues with intensive work to be done by a small number of workers. For these types of use cases, I'll take this approach over RabbitMQ or Kafka all day long.
That’s what our workload is like for our SaaS code analysis platform. We create a few tasks (~10 max) for every customer submission (usually triggered by a code push). We replaced Kafka with a PostgreSQL table a couple of years ago.
We made the schema, functions, and Grafana dashboard open source [0]. I think it’s slightly out-of-date but mostly the same, and has been running perfectly.
[0] https://github.com/ShiftLeftSecurity/sql-task-queue
sorg
-
Postgres is a great pub/sub and job server
Some comments from brandur on SKIP LOCKED in https://github.com/brandur/sorg/pull/263. I haven’t looked into it too much since what we have works without any issues; but good to know, thanks!
What are some alternatives?
r2dbc-postgresql - Postgresql R2DBC Driver
walex - Postgres change events (CDC) in Elixir
realtime - Broadcast, Presence, and Postgres Changes via WebSockets
dramatiq - A fast and reliable background task processing library for Python 3.
dramatiq-pg
Que - A Ruby job queue that uses PostgreSQL's advisory locks for speed and reliability.
pg-boss - Queueing jobs in Node.js using PostgreSQL like a boss
worker - High performance Node.js/PostgreSQL job queue (also suitable for getting jobs generated by PostgreSQL triggers/functions out into a different work queue)