que-go

An interoperable Golang port of the Ruby Que queuing library for PostgreSQL

  • 所有者: bgentry/que-go
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

que-go

GoDoc

Que-go is a fully interoperable Golang port of Chris Hanks' Ruby Que
queuing library
for PostgreSQL. Que uses PostgreSQL's advisory locks
for speed and reliability.

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. Or you can just
write everything in Go :)

pgx PostgreSQL driver

This package uses the pgx Go PostgreSQL driver rather than the more
popular pq. 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.

Please see the godocs for more info and examples.

主要指标

概览
名称与所有者bgentry/que-go
主编程语言Go
编程语言Go (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2014-10-25 06:18:15
推送于2023-11-20 12:50:47
最后一次提交2023-11-12 17:12:36
发布数3
最新版本名称v1.0.1 (发布于 2018-02-08 16:36:43)
第一版名称v0.5.0 (发布于 2017-07-28 10:20:00)
用户参与
星数325
关注者数12
派生数48
提交数52
已启用问题?
问题数21
打开的问题数1
拉请求数8
打开的拉请求数0
关闭的拉请求数20
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?