Dev.to WebDev ๐Ÿ›  Dev ๐Ÿ‘ 0 ๐Ÿ“– 6 min read

Trigger.dev or Inngest: Do You Need Background Jobs in Next.js?

Do You Need Trigger.dev or Inngest for Background Jobs in a Next.js App? Most Next.js apps do not need either platform, but a job that must survive a deploy and retry without you watching changes the answer. The choice

Do You Need Trigger.dev or Inngest for Background Jobs in a Next.js App?

Most Next.js apps do not need either platform, but a job that must survive a deploy and retry without you watching changes the answer. The choice between them comes down to pricing shape and how much of the runtime you want to give up.

Quick Answer

Pick Inngest if you want an event-driven model you can run locally and keep the vendor at arm's length, because its SDK is open source and its free tier allows 50,000 executions with 5 concurrent steps. Pick Trigger.dev if your jobs are long-running compute tasks and you want explicit, per-second machine pricing instead of execution counts, since its free plan includes $5 of monthly credits and 20 concurrent runs. If you are on Vercel and your jobs finish in under a minute, neither is necessary - use a queue and a cron route first.

What Problem These Platforms Solve

Serverless functions are a bad fit for background work by construction. They time out, they are killed mid-execution when a deploy lands, they have no durable retry, and they cannot hold a long-lived connection. A Next.js app on Vercel inherits all four limits. That is the entire reason these platforms exist: they take the job off the request path, run it on workers they manage, persist the state of each step, and retry on their own schedule.

Both products do the same job at a high level. You define a function, you trigger it from a route or a webhook, and the platform guarantees it runs, resumes, and reports. The difference is in the mental model: Inngest thinks in events and steps inside a workflow, Trigger.dev thinks in tasks and runs on machines you can size.

Trigger.dev: Containers You Can Price

Trigger.dev bills compute per second against a machine table, plus a small invocation fee per run. At the time of writing, its default Small 1x machine is 0.5 vCPU and 0.5 GB of RAM at $0.0000338 per second, and each run invocation costs $0.000025, or $0.25 per 10,000 runs. Runs in the development environment are not charged.

The consequence is that cost tracks how long your job runs, not how many times it fired. A three-second job on the default machine costs roughly $0.0001 in compute, so 10,000 runs a month lands near $1.26 total, and 100,000 runs lands near $12.64. The free plan's $5 monthly credit covers about 40,000 runs at that duration; the $10 Hobby plan includes $10 of credits and raises concurrency from 20 to 50 runs.

Plan Monthly price Included credits Concurrent runs Log retention
Free $0 $5 20 1 day
Hobby $10 $10 50 7 days
Pro $50 $50 200+, then $10 per 50 30 days

Prices are from Trigger.dev's pricing page at the time of writing. The model is honest in a way that event-count billing is not: a job that takes two minutes costs ten times what a twelve-second job costs, and you can see that before you deploy rather than after the invoice.

Inngest: Events, Steps, and a Free SDK

Inngest's pitch is that the orchestration layer is open source and the SDK runs locally, so your workflows are portable in a way a proprietary runtime is not. Its free tier allows 5 seats, 50,000 executions, 5 concurrent steps, 3 workers, and 500,000 ingested events. The Pro plan starts at $99 a month for 15 seats and 1 million executions with 100+ concurrent steps; Business starts at $499 for 10 million executions.

Because billing is per execution rather than per second, the economics invert. A workflow that fans out into twenty steps is one execution in Inngest's model but twenty function calls in a naive implementation, and step-level durability means a retry resumes at the failed step instead of restarting the workflow. For jobs that are mostly orchestration - send an email, wait, check a payment, update a record - that step model is cheaper and easier to reason about than paying for compute seconds spent waiting.

Where it gets expensive is heavy compute. If your job crunches a video for four minutes, you are paying for wall-clock time in a system designed around short steps. Check the execution and step limits against your real workload before assuming the free tier covers you.

The local-first design matters more than it sounds. Being able to run the whole workflow engine on your laptop means tests do not depend on a vendor sandbox, which is the same argument for running your own queue instead of renting one - our comparison of background job queues for indie SaaS covers the self-hosted side of that trade.

Where the Two Actually Differ

Concurrency is the first practical difference. Trigger.dev's free plan allows 20 concurrent runs with unlimited tasks, and its paid tiers scale concurrency in blocks of 50. Inngest's free plan allows 5 concurrent steps with 3 workers. If your app processes uploads in parallel and you expect twenty at once on launch day, the Trigger.dev free tier absorbs that and Inngest's does not.

Durability semantics are the second. Both persist state between steps, but the granularity differs: Trigger.dev checkpoints inside a task you write as ordinary code, while Inngest splits the task into named steps with step.run calls. The Inngest model is more explicit and easier to reason about during an incident; the Trigger.dev model requires less rewriting of an existing function.

Lock-in is the third. Inngest's open-source SDK lowers the cost of leaving but does not eliminate it, because the durable execution engine is still theirs. Trigger.dev publishes a self-hosting guide, which is a real exit option if you later decide the managed service is too expensive - the same build-versus-rent calculation that decides whether you self-host your deployment layer, covered in our self-hosted PaaS comparison.

What You Should Build First

Before paying either vendor, check whether a plain queue solves it. A Postgres table with a status column, a worker process, and a cron trigger handles a surprising amount of work, and it costs nothing beyond the database you already run. The failure mode that pushes teams to these platforms is not volume, it is retries and visibility: once a job fails at 3 a.m. and nobody can tell which step died, the platform pays for itself.

Triggered on that basis, the decision is usually about the existing code. If your background work is ordinary TypeScript functions that call APIs and write rows, Trigger.dev is the shorter path because it runs the function with minimal changes. If your work is a chain of conditional steps with waits between them, Inngest's model will save you from writing your own state machine.

One warning that applies to both: feature flags and environment separation become mandatory once background jobs exist, because a bad flag flip that only affects a worker is much harder to spot than one that breaks a page. Our roundup of open-source feature flag tools covers the self-hosted options for that layer.

Bottom Line

You need one of these platforms once a job must outlive the request, survive a deploy, and retry without you watching. Choose Trigger.dev for compute-shaped work and predictable per-second costs - $5 of free credits and 20 concurrent runs is enough to validate the pattern. Choose Inngest for orchestration-shaped work and an open-source SDK, with 50,000 free executions before you pay $99. If your jobs are short and your volume is low, ship the Postgres queue first and revisit this decision when the first incident forces it.

Related reading on PikVue:

Originally published at pikvue.com โ€” independent 2026 reviews and comparisons of developer tools, AI products, and SaaS platforms.

๐Ÿ“ฐ Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes โ€” full credit and traffic to the original publisher.