What is Queuert
A job-chain library that keeps durable, typed background work in your own database, and where it fits among queues and workflow engines.
Queuert is a job-chain library: durable, typed background work that lives in your database. Chains of jobs compose like Promise chains, survive crashes, and commit together with your transactions.
The unit of work is a typed chain of jobs, possibly of different types. Each job's input, output and continuation are inferred end to end, so a rename or a wrong shape is a compile error. Because a chain starts inside your database transaction, the work that follows a write commits or rolls back with the data that triggered it. There is no separate queue to keep in sync.
Guarantees
- Transactional outbox. A chain started inside your transaction commits or rolls back with your data, and workers only see committed jobs. Transactional outbox teaches it.
- Nothing is dropped. An attempt that throws, or whose worker dies, puts the job back to
pending, and it runs again with backoff until it completes. Errors and retries teaches it. - Transactional completion. A job's outcome commits in the same transaction as the writes it made, once, so a retry never applies them twice. Transactional completion teaches it.
- No stale writes. An attempt that no longer owns its job, because its worker's lease ran out, cannot complete it; its transaction rolls back.
- Checked by the compiler. Inputs, outputs, continuations and blockers are typed from one set of job type definitions.
Where it fits
- Job queues (BullMQ, pg-boss, Graphile Worker) route independent messages through named lanes. Good for many independent jobs.
- Workflow platforms (Temporal, Inngest) run long-lived processes with signals, queries and durable sleeps. Good for processes that run for hours or weeks.
- Durable workflow libraries (DBOS) replay one workflow function against checkpoints in PostgreSQL. Good for writing a multi-step process as a single function.
- Queuert sits between queues and workflow engines. A one-job chain is a queue; a multi-step chain with blockers is closer to a workflow. Good for background work that commits with your domain writes and finishes in seconds to minutes.
For one-on-one comparisons see the comparison pages.
Features
- Lives in your database. PostgreSQL, SQLite, MySQL/MariaDB or Redis, with no workflow server to run.
- Fast wakeup. With a notify adapter, workers are woken when a row commits instead of waiting for the next poll.
- Fan-in, scheduling and deduplication are built in: wait for several chains, delay or retry with backoff, collapse duplicates by key.
- MIT licensed.