Skip to content
whichdevtool?
Categories ▾

Frameworks and UI

Frontend and full-stack frameworks Backend frameworks UI component libraries

Hosting

VPS and cloud servers App hosting and PaaS

Data

Managed databases File and object storage ORMs and database toolkits

AI

AI model APIs

Email

Transactional email APIs Email marketing and newsletters

Payments

Payments and billing

Domains and edge

Domain registrars CDN, DNS and edge security

Operations and identity

Monitoring, uptime and error tracking Auth and identity Background jobs, queues and workflows
Stacks Directory
Ctrl K

Search directory
Menu
StacksDirectory Pricing changes Glossary
VPS and cloud servers App hosting and PaaS Managed databases Transactional email APIs Email marketing and newsletters Domain registrars CDN, DNS and edge security Monitoring, uptime and error tracking Auth and identity Frontend and full-stack frameworks Backend frameworks UI component libraries AI model APIs File and object storage Payments and billing Background jobs, queues and workflows ORMs and database toolkits
  1. Home
  2. Background jobs, queues and workflows
  3. pg-boss
PB

PostgreSQL job queue for Node.js · by timgit (independent maintainer)

pg-boss

MIT-licensed Node.js job queue on PostgreSQL using SKIP LOCKED, with cron, retries, dead-letter queues, priorities, pub/sub fan-out and an optional dashboard.

Visit pgboss.io ↗ Alternatives Open source Open source Self-hostable
pgboss.io
pg-boss homepage
§1

Overview

pg-boss is a job queue for Node.js built on PostgreSQL, first published in 2016 and maintained by a single developer (GitHub user timgit). It relies on Postgres's SKIP LOCKED to hand each job to exactly one worker, and jobs can be created inside an existing database transaction, with adapters for Drizzle, Knex, Kysely and Prisma.

Features include cron scheduling, deferred jobs, priority queues, dead-letter queues with redrive, automatic retries with exponential backoff, job dependency workflows and a pub/sub API for fanning one event out to several queues. Queue storage policies cover rate limiting, debouncing and concurrency patterns. Workers poll with backpressure and can use LISTEN/NOTIFY for lower latency.

Separate packages add a web dashboard, an HTTP proxy for platforms that cannot hold database connections, and a CLI for migrations. It works with Postgres-compatible databases such as CockroachDB, YugabyteDB and Citus, or embedded PGlite. It requires Node 22.12+ and PostgreSQL 13+.

§2

Pricing and plans

Plan Price What you get
pg-boss Free MIT licence, maintained by one person with sponsorship

Free and MIT-licensed; the maintainer states it always will be. Your only costs are the Postgres database and the Node.js processes running workers.

Source: github.com/timgit/pg-boss · prices as published, excluding tax.

§3

What it does

Exactly-once delivery
SKIP LOCKED ensures each job is fetched by only one worker.
Transactional enqueue
Create jobs in an existing transaction, with adapters for Drizzle, Knex, Kysely and Prisma.
Cron and deferral
Cron schedules and jobs deferred to a later time.
Retries and dead letters
Exponential backoff retries, priority queues and dead-letter queues with redrive.
Queue policies
Storage policies for rate limiting, debouncing and concurrency control.
Dashboard and proxy
Optional @pg-boss/dashboard web UI and @pg-boss/proxy HTTP proxy packages.
§4

Strengths and limitations

Strengths

  • No Redis or broker; uses the Postgres you already run
  • MIT licence with a commitment to stay MIT
  • Rich feature set including cron, DLQ and pub/sub
  • Works with serverless functions and Postgres-compatible databases

Limitations

  • Requires Node 22.12 or higher and PostgreSQL 13 or higher
  • Maintained by a single person
  • Job traffic adds load to your database
  • Worker API is Node.js only; other runtimes use SQL directly
§5

Who it suits

Good for

  • Node.js apps on Postgres wanting fewer moving parts
  • Jobs that must be created atomically with data changes
  • Small teams that do not want to operate Redis

Look elsewhere if

  • Extremely high job volumes better served by a dedicated broker
  • Projects stuck on older Node.js versions
§6

Alternatives to pg-boss

Tool From Free option Stages
Celery Distributed task queue for Python
— Open source
Ha
Hatchet Postgres-backed task queue and durable workflow engine
Usage-based Free tier
Sidekiq Redis-based background job library for Ruby
$99/mo Open source
Cloudflare Workflows Durable workflow engine on Cloudflare Workers
Usage-based Free tier
SQ
Solid Queue Database-backed Active Job backend for Rails
— Open source
GW
Graphile Worker PostgreSQL job queue for Node.js
— Open source

All background jobs, queues and workflows →

§7

Questions

Is pg-boss free?

Yes. pg-boss is MIT-licensed and free; it is funded by sponsorship.

Does pg-boss support cron jobs?

Yes. It includes cron scheduling as well as deferred jobs.

What does pg-boss require?

Node.js 22.12 or higher and PostgreSQL 13 or higher.

Does pg-boss have a dashboard?

Yes, as the separate @pg-boss/dashboard package.

Sources read for this page

  • https://github.com/timgit/pg-boss
Spec sheet
From
Open source
Free tier
Free to self-host
Stages
HobbyIndieStartupScale-upEnterprise Suits hobby, indie, startup, scale-up
Does
Job queue, cron, job dependencies
Free allowance
Unlimited (MIT, your Postgres)
SDKs
Node.js/TypeScript (SQL for other runtimes)
Self-host
Yes, needs PostgreSQL 13+
Open source
Yes
Self-host
Yes
EU data
Not stated
Category
Jobs and queues
Visit pgboss.io ↗

To report an out-of-date price or limit, use the correction form.

whichdevtool?

Developer and cloud tools compared on price, free tier and limits, each with its source. For side projects, solo developers and small teams.

Categories

  • VPS and cloud servers
  • App hosting and PaaS
  • Managed databases
  • Transactional email APIs
  • Email marketing and newsletters
  • Domain registrars
  • CDN, DNS and edge security
  • Monitoring, uptime and error tracking
  • Auth and identity
  • Frontend and full-stack frameworks
  • Backend frameworks
  • UI component libraries
  • AI model APIs
  • File and object storage
  • Payments and billing
  • Background jobs, queues and workflows
  • ORMs and database toolkits

Research

  • Directory
  • Stacks by project
  • Developer news
  • Pricing changes
  • Glossary

Site

  • About and methods
  • How we make money
  • Suggest a tool or fix
  • Privacy
© 2026 whichdevtool.com Prices change. Each tool page links to its source. We may earn a commission when you sign up through links on this site. How we make money