pgdb-queue

JSON →
library 1.1.2 ·javascript
verified Jun 5, 2026

pgdb-queue v1.1.2 is a lightweight, Kafka-style asynchronous message queue built on PostgreSQL, eliminating the need for Kafka, Redis, or additional infrastructure. It uses PostgreSQL's LISTEN/NOTIFY for efficient, zero-polling wake-ups after draining, and row-level locking with FOR UPDATE SKIP LOCKED for concurrency. The library is ideal for startups or small apps needing reliable background processing with minimal operational overhead. It ships TypeScript types and provides a simple producer/consumer API with automatic retries and FIFO ordering.