Package Usage: go: github.com/bgentry/que-go
Package que-go is a fully interoperable Golang port of Chris Hanks' Ruby Que
queueing library for PostgreSQL. Que uses PostgreSQL's advisory locks
for speed and reliability. See the original Que documentation for more details:
https://github.com/chanks/que
Because que-go is an interoperable port of Que, you can enqueue jobs in Ruby
(i.e. from a Rails app) and write your workers in Go. Or if you have a limited
set of jobs that you want to write in Go, you can leave most of your workers in
Ruby and just add a few Go workers on a different queue name.
Instead of using database/sql and the more popular pq PostgreSQL driver, this
package uses the pgx driver: https://github.com/jackc/pgx
Because Que uses session-level advisory locks, we have to hold the same
connection throughout the process of getting a job, working it, deleting it, and
removing the lock.
Pq and the built-in database/sql interfaces do not offer this functionality, so
we'd have to implement our own connection pool. Fortunately, pgx already has a
perfectly usable one built for us. Even better, it offers better performance
than pq due largely to its use of binary encoding.
que-go relies on prepared statements for performance. As of now these have to
be initialized manually on your connection pool like so:
If you have suggestions on how to cleanly do this automatically, please open an
issue!
Here is a complete example showing worker setup and two jobs enqueued, one with a delay:
3 versions
Latest release: about 7 years ago
5 dependent packages
View more package details: https://packages.ecosyste.ms/registries/proxy.golang.org/packages/github.com/bgentry/que-go
View more repository details: http://repos.ecosyste.ms/hosts/GitHub/repositories/bgentry%2Fque-go
Dependent Repos 10
CMSgov/bcda-app
Beneficiary Claims Data APISize: 30.3 MB - Last synced: 6 days ago - Pushed: 6 days ago

svdberg/syncmysport-runkeeper
Go implementation of something that syncs activities between Strava and RunkeeperSize: 5.64 MB - Last synced: 11 months ago - Pushed: about 5 years ago

jasontthai/tinyalias
URL Shortener in GoSize: 52.2 MB - Last synced: 11 months ago - Pushed: almost 5 years ago


king-jam/channel-cleaner
Slack App to Delete / Clean Slack WorkspacesSize: 2.22 MB - Last synced: 11 months ago - Pushed: over 6 years ago


santrancisco/DRAT
Dependencies Risk Analysis ToolSize: 687 KB - Last synced: 11 months ago - Pushed: over 5 years ago

debugeek/telegram-rss-bot
Lightweight Telegram RSS bot written in Go.Size: 80.1 KB - Last synced: 13 days ago - Pushed: 13 days ago

CMSgov/dpc-app
Data @ the point of care applicationSize: 54.1 MB - Last synced: 2 days ago - Pushed: 2 days ago


andreiradoi/cloud Fork of fieldkit/cloud
cloud implementation for the fk platform. server and web architecture, etc...Size: 75 MB - Last synced: over 1 year ago - Pushed: over 1 year ago

parrotmac/ceptckah
Certificate Transparency Log ScannerSize: 57.6 KB - Last synced: about 2 months ago - Pushed: about 3 years ago


fjfd/flynn Fork of flynn/flynn
A next generation open source platform as a service (PaaS)Size: 11.6 MB - Last synced: about 2 years ago - Pushed: about 10 years ago

nii236/service-desk
Proxy-queue thingy to receive emails and add tasks to a kanban board for a pseudo service deskSize: 4.88 KB - Last synced: over 1 year ago - Pushed: about 6 years ago

simple10/flynn Fork of flynn/flynn
A next generation open source platform as a service (PaaS)Size: 12.2 MB - Last synced: about 1 year ago - Pushed: about 10 years ago

bear-metal/flynn Fork of flynn/flynn
A next generation open source platform as a service (PaaS)Size: 11.7 MB - Last synced: about 1 year ago - Pushed: about 10 years ago

ytc301/flynn Fork of flynn/flynn
A next generation open source platform as a service (PaaS)Size: 12.1 MB - Last synced: about 2 years ago - Pushed: about 10 years ago

dalinaum/flynn Fork of flynn/flynn
A next generation open source platform as a service (PaaS)Size: 12.8 MB - Last synced: 2 days ago - Pushed: about 10 years ago

psirenny/flynn Fork of flynn/flynn
A next generation open source platform as a service (PaaS)Size: 11.8 MB - Last synced: about 1 year ago - Pushed: about 3 years ago

no2key/flynn Fork of flynn/flynn
A next generation open source platform as a service (PaaS)Size: 12.1 MB - Last synced: about 2 years ago - Pushed: about 10 years ago

rpeterson/flynn Fork of flynn/flynn
A next generation open source platform as a service (PaaS)Size: 12.2 MB - Last synced: about 1 year ago - Pushed: about 10 years ago
