Tuesday, November 24, 2026

BullMQ vs Trigger.dev: a library or a platform

Cover for BullMQ vs Trigger.dev: a library or a platform

BullMQ vs Trigger.dev

Trigger.dev recently published a comparison with BullMQ. It is a reasonable page, but it describes BullMQ from the outside, and a few of its points are out of date or not quite right. This is the same comparison from our side.

The short answer: BullMQ is a library you run inside your own services. Trigger.dev is a platform that runs your code on its machines. If you want someone else to run the infrastructure, and you are happy paying for compute by the second, Trigger.dev is a good choice. If you already run servers or containers, need precise control over rate limits and cost, or work in more than one language, BullMQ is usually the better fit.

Disclosure: we maintain BullMQ, and sell BullMQ Pro and the Taskforce.sh dashboard. We have tried to describe Trigger.dev fairly, using its own documentation. Prices and limits are taken from its pricing and docs pages in November 2026.

Side by side

BullMQ Trigger.dev
What it is A library you add to your services A platform you deploy tasks to
License MIT Apache 2.0
Where your code runs Your own processes, servers or containers Trigger.dev Cloud, or your self-hosted installation
Storage Redis (or compatible) or PostgreSQL Managed by the platform
Languages Node.js and Bun, Python, Elixir, .NET, Rust, and a PHP client for adding jobs TypeScript. Python scripts can be called from a TypeScript task
Cost Your own infrastructure Per second of compute, plus $0.25 per 10,000 runs, on top of a monthly plan
Time-based rate limits Yes, per queue, shared by all workers No, concurrency limits only
Concurrency limits Per worker and global per queue Per task, per queue and per key
Fair processing per tenant Groups, in BullMQ Pro Concurrency keys
Flows and child jobs Yes, across queues and languages Yes, triggerAndWait
Waiting without using compute Delayed jobs and parents waiting for children use no worker slot Checkpoints after a few seconds, on Cloud only
Cancellation worker.cancelJob with an AbortSignal Yes
Per-run machine size No, jobs run on your workers Yes, up to 8 vCPU and 16 GB
Build and deploy Ships with your app, through the CI/CD you already have A separate build and deploy through its CLI, GitHub or Vercel integrations
Dashboards Bull Board, Taskforce.sh and others Built in

The real difference

Both tools let you run work in the background, retry it when it fails and chain steps together. The difference is who owns the machine that runs your code.

With BullMQ, a worker is a normal process in your application. You start it the same way you start your web server, it uses the same database connections and environment, and it picks up jobs from Redis or PostgreSQL. You decide how many workers to run and where.

With Trigger.dev, you write tasks in TypeScript, and its CLI packages them into a Docker image that runs on Trigger.dev's machines, each run in its own isolated environment with the CPU and memory you choose. You do not run any workers, but your code no longer runs next to the rest of your system, and every second of it is billed.

Most of the trade-offs below follow from that.

When Trigger.dev is the better choice

  • You do not want to run any infrastructure. On Trigger.dev Cloud there are no workers, no Redis and no scaling to think about. With BullMQ, even if you use a managed Redis, you still deploy and scale your workers.
  • Your jobs need very different machines. Trigger.dev lets you pick the machine size per task, so a video job can get 8 vCPU while everything else runs on half a CPU. With BullMQ you get this by running separate worker pools.
  • Your runs wait for a long time in the middle. On Trigger.dev Cloud, a run that waits for a subtask, or for longer than a few seconds, is checkpointed and stops using compute. BullMQ also has ways to wait without holding a worker (more on this below), but they require you to split the work into separate steps.
  • You want preview environments for your tasks. Trigger.dev gives each branch its own environment with its own variables and schedules, and it can stream run updates to your frontend.

When BullMQ is the better choice

Your jobs call rate-limited APIs

Model providers limit you by requests and tokens per minute. Trigger.dev's own comparison says it has no time-based rate limiting, only concurrency limits. Concurrency is not the same thing: 10 runs at a time can still send hundreds of requests per minute when each call is short.

In BullMQ, the limit is part of the worker options and applies to the whole queue, however many worker processes you run:

import { Worker } from "bullmq";

const worker = new Worker("summaries", summarize, {
connection,
concurrency: 50, // jobs in flight in this process
limiter: { max: 500, duration: 60_000 }, // at most 500 jobs per minute across all workers
});

When a provider answers with 429 and a Retry-After header, the worker can pause the whole queue for exactly that long and put the job back without using up a retry attempt. Our agent workflow guide shows the full pattern.

Most of the run is spent waiting for a model

An agent step that calls a model spends most of its time waiting for the response. On Trigger.dev that wait is compute time, billed by the second like any other: a run that waits 30 seconds for a model on the default machine costs about $0.001, including the run fee. A million of those per month is about $1,040, before the plan's included credits.

On BullMQ that wait is an awaited promise in a worker that is already running. A million 30-second jobs a month is, on average, about 12 jobs in flight at once, which one Node.js process with concurrency: 50 handles easily. You pay for the server and the database, not for the waiting.

The balance changes for CPU-heavy work, where you pay for the CPU either way, and for spiky workloads that would otherwise need a lot of idle capacity.

You already run servers, and want your data to stay there

BullMQ workers run wherever your code already runs, in your own network, with your own database connections, secrets and observability. Job data only lives in your Redis or PostgreSQL. With Trigger.dev Cloud, your code and payloads run on Trigger.dev's infrastructure. Self-hosting Trigger.dev is possible, but then you run its web app, its workers, Postgres and Redis yourself, and according to its docs checkpoints, warm starts and autoscaling are only available on Cloud.

You want your jobs to ship with the rest of your app

A BullMQ worker is ordinary code in your repository. It is built, tested, reviewed and deployed by the pipeline you already have, from the same commit as the code that adds the jobs. There is no second build system, no CLI to install and no images to upload to another platform. The producer and the worker share the same types, configuration and database clients, so they can't drift apart, and rolling back your app rolls back your workers with it.

It also means you can run the whole thing on your laptop with a local Redis or PostgreSQL, without an account or a network connection, and test your workers like any other code. When you change the shape of a job's data, treat it like a database migration: jobs that were queued before the deploy will be processed by the new code, so keep the worker able to read both versions until the old jobs are gone.

You use more than one language

BullMQ has official libraries for Python, Elixir, .NET and Rust, plus a PHP client for adding jobs. They share the same queues, so a job added from a Laravel app or a Python service can be processed by a Node.js worker, and a job added from Node.js can be processed by a Python, Elixir, .NET or Rust worker. Every library works with Redis; PostgreSQL is supported in Node.js, Python, Elixir and .NET, so the services that share a PostgreSQL queue need to use one of those. Trigger.dev tasks are written in TypeScript, and Python is supported by running scripts from inside a TypeScript task.

You need high throughput and low latency

A BullMQ job starts in a worker that is already running, so the time from adding a job to running it is usually a few milliseconds. Throughput depends on your Redis or PostgreSQL and your workers rather than on plan limits. On Trigger.dev Cloud, plans limit concurrent runs (from 20 on the free plan to 200 or more on Pro), API requests (1,500 per minute) and queue size.

You need fairness between customers

When one customer adds 10,000 jobs, the others should not wait behind them. BullMQ Pro's groups process jobs round-robin per customer, with a concurrency limit, a rate limit and a priority for each group, and you can pause a single customer. Groups need Redis: BullMQ Pro does not run on PostgreSQL yet. Trigger.dev's concurrency keys give each customer its own concurrency limit, which covers part of this.

What the Trigger.dev comparison gets wrong

Trigger.dev's page is mostly accurate, but some points are worth correcting.

"Long LLM calls may trigger stalled job detection." They don't. While a job runs, the worker renews its lock every 15 seconds by default, so a model call that takes ten minutes is fine. A job only stalls if the lock can't be renewed in time: the worker process dies, it blocks the event loop with CPU work for longer than the lock duration (30 seconds by default), or it loses its connection to Redis or PostgreSQL for that long. The lockDuration: 120000 in their LLM example is not needed for an awaited API call.

"Concurrency is per worker instance." That is the default, but a queue can also have a global limit that every worker respects:

await queue.setGlobalConcurrency(10);

"Data loss depends on your Redis configuration." That is true for Redis, and the right settings are in our production guide. Since version 6, BullMQ can also store queues in PostgreSQL with the same API, if you prefer a database you already back up and replicate.

"No built-in human-in-the-loop." BullMQ has no special API for approval tokens, but a job can move itself to the delayed state and check again later without holding a worker or using a retry attempt, and a parent job waits for its children without holding a worker either. Both are shown in the agent workflow guide.

"Idempotency is your responsibility." Partly. A job with a custom jobId is not added again while a job with that id is still in the queue (once it is removed, for example by removeOnComplete, the id can be used again), and deduplication collapses repeated requests within a time window. Like any system that retries work, including Trigger.dev, a job can still run more than once after a crash, so side effects should be safe to repeat.

Cancellation. The page doesn't mention it, but BullMQ workers can cancel running jobs with worker.cancelJob(), which aborts an AbortSignal passed to the processor.

"No built-in validation." Job data is typed. Queue and Worker take the data, result and job name types as generics, so queue.add() and your processor are checked against the same types at compile time:

type Summary = { documentId: string; language: string };

const queue = new Queue<Summary>("summaries", { connection });
await queue.add("summarize", { documentId: "42", language: "en" }); // checked

const worker = new Worker<Summary>("summaries", async (job) => {
job.data.documentId; // typed as string
}, { connection });

What BullMQ does not do is check the data again at runtime when a job is processed. That matters when jobs are added by another service or language, or were added before a deploy changed their shape. Trigger.dev's schemaTask runs a Zod, ArkType or TypeBox schema on each run; with BullMQ you call the schema yourself at the start of the processor.

Some of their points are fair. BullMQ does not give each job its own machine: jobs run on your workers, so a CPU-heavy job needs a worker pool sized for it. Progress updates can be sent to your frontend through job.updateProgress() and QueueEvents, but there is no ready-made streaming API for the browser.

Can you use both?

Yes. They don't share queues, but nothing stops you from running BullMQ for high-volume jobs inside your services and using Trigger.dev for a handful of long, mostly idle workflows. Moving a task from one to the other is mostly a matter of moving the function body: both call an async function with the job's data.

Summary

Pick Trigger.dev if you want a managed platform, your team does not want to run workers or a queue database, and the per-second price fits your workload.

Pick BullMQ if you want your jobs to run on your own infrastructure, you call rate-limited APIs, most of your job time is spent waiting on I/O, you need high throughput, or you work in more than one language. If you go with BullMQ, Taskforce.sh gives you a dashboard and alerts for your queues, and BullMQ Pro adds groups for multi-tenant workloads.