# QueueClassic/queue_classic

Simple, efficient worker queue for Ruby & PostgreSQL.

Repository: https://github.com/QueueClassic/queue_classic
Canonical: https://ross.abutalabs.com/products/queue_classic
Language: Ruby
License: MIT
License Family: permissive
Topics: queue, activejob, queuing
Last push: 2024-03-22T19:04:18+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5698, "days_push": 894, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1186, forks 152 (observed 2026-08-28T04:03:54.996580+00:00)

## What it is
queue_classic is a Ruby gem providing a simple, efficient background job queue backed by PostgreSQL instead of a separate service like Redis. It leverages Postgres features such as LISTEN/NOTIFY, SKIP LOCKED, and row locking, and supports ActiveJob integration.

## Use cases
- run background jobs in a Rails app without Redis
- enqueue jobs inside database transactions atomically
- process async tasks using an existing PostgreSQL database
- run multiple queues with heterogeneous workers
- replace Resque or Sidekiq with a Postgres-backed queue

## When to choose
- you already use PostgreSQL and want to avoid adding Redis or another queue service
- you need transactional job enqueueing that only fires when the surrounding transaction commits
- you want a simple, low-operations-overhead ActiveJob-compatible queue

## When to avoid
- you need very high throughput beyond what Postgres-backed polling can handle
- you require advanced features like scheduled/recurring jobs, retries with specific exceptions, or a rich admin UI out of the box
- your stack does not already run PostgreSQL

## Facets
- artifact type: library
- maturity: maintenance
- function: message-queue, database, scheduling
- domain: backend, databases, web-development, developer-tools
- platform: ruby
- tags: postgresql-backed-queue, activejob-adapter, background-jobs, listen-notify, transactional-enqueue, postgresql

## Member repositories
- QueueClassic/queue_classic (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:54.996580+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:23:47.196493+00:00, confidence not recorded.
  - readme: https://github.com/QueueClassic/queue_classic (fetched 2026-08-28T04:03:54.996580+00:00, sha 8d156370f616)
- Data as of 2026-08-30T08:39:29.467469+00:00.
