Worker pools claim jobs straight from PostgreSQL with leases and heartbeats, and a type-level registry maps each queue table to one payload type. Group ordering, rate and concurrency limits, cron, a DLQ, a REST API, an admin UI and OpenTelemetry run on simple, Orville or Hasql adapters.
- 64,823Batched jobs/s, 1M queue
- 17,472Single jobs/s, 1M queue
- 15,185Steady-state jobs/s
Trade-offs
- Workers claim from PostgreSQL directly, with no broker and no leader, so capacity grows with processes, but delivery is at least once and outside side effects must be idempotent.
- Rate-limit buckets are unlogged by default, so after a crash or failover every bucket is full; durable buckets survive a restart but cost throughput.
- A group key admits one job or batch at a time in insertion order, so a retrying job holds its group until it succeeds or reaches the dead-letter queue.
Q&A3
A claimed job is hidden for its lease, and a heartbeat extends the lease while the handler runs. When the lease expires another worker reclaims it, and the old worker's heartbeat or ack throws, so it drops the job.
Under
transactionalWorkerConfig the handler runs in a transaction: its database work, its stored result and the ack commit together. On failure it rolls back, and a second transaction retries with backoff or moves the job to the DLQ.In the steady-state benchmark (10 producers, 4 pools of 10 workers, PostgreSQL 18 on an Apple M5 Pro), single-job throughput was 15,185 jobs/s without tracing and 15,192 with it.
Links
Built by
Reviews
Loading reviews
More in Job queues
See all 7 →
jobdGPU-aware job broker for a few personal machines, with an MCP server- Job Scheduler PlatformDurable one-off and cron jobs posted to webhooks, with retries and a DLQ
QueueScopeNative macOS dashboard for BullMQ queues on Redis- TsumugiJob system for Cloudflare Workers on Durable Objects and Queues
- RoundhouseOps UI for Sidekiq and Solid Queue, mounted as a Rails engine
ForqMessage queue on SQLite in a single binary
More in Postgres
See all 25 →
SupermetryCookie-free web and product analytics on one Go binary and PostgreSQL- StreambedPostgres-to-Iceberg CDC engine with a built-in Postgres wire query server
MigrationPilotPostgreSQL migration linter that blocks unsafe DDL before merge
go-ledgerMulti-tenant double-entry payment ledger API in Go, built in public- pistachioDeclarative PostgreSQL schema management with a plan and apply workflow
- RRQClosed-loop payment ledger on sharded Postgres with a Kafka outbox
More in Distributed systems
See all 20 →
RuvioRust key-value server that speaks RESP, with locks and queues as commands- clinkC++ stream processing engine that stays correct when processes die
- pg-statusSidecar that reports PostgreSQL master, replicas and replication lag
LassoSelf-hosted Ethereum JSON-RPC proxy that routes each call to the best provider- SwarmLLMLocal LLM app whose computers team up over the internet to run bigger models
- AdvisKVA small, complete distributed key-value store in C++17 on Raft