Infrastructure
Background Jobs
Choose how asynchronous work executes and recovers by task duration, durability, workflow state, worker ownership, and failure semantics.
Recommendation
Choose the execution and recovery model before the job library.
Four background execution models
The routes differ in who runs workers, where durable state lives, and how much workflow behavior the platform owns.
Execution routes
Use the simplest route whose recovery model matches the consequences of failure.
A TypeScript team wants managed task workers
Evaluate Trigger.dev.
Managed compute, code-defined tasks, retries, waits, schedules, and run history can remove worker plumbing.
Verify: Validate current runtime, limits, qualitative plan boundaries, deployment model, and platform coupling.12
Events and durable steps fit application execution
Evaluate Inngest.
Event functions and managed step state can add durable coordination while code remains in application endpoints or connected workers.
Verify: Hosting timeouts, execution ownership, event and step limits, or a need for fully managed workers can change the route.12
Long-lived business workflows require explicit durability
Evaluate Temporal.
Workflow history, activities, timers, signals, and recovery fit failure-sensitive multi-service processes.
Verify: Simple short-lived jobs rarely justify the programming, worker, determinism, versioning, and operating model.123
The team wants direct library and worker control
Evaluate BullMQ.
A Node.js library plus Redis provides an application-owned route with explicit job and worker behavior.
Verify: The team must own Redis durability, workers, scaling, retries, monitoring, backup, and incident recovery.1245
Boundary: Message Queues retains and delivers messages but does not execute application work. Cron & Scheduled Jobs owns time-based invocation. Neither removes job idempotency or recovery design.
What durability means
Retry support alone does not make the routes equivalent; durable state, execution ownership, and recovery obligations differ.
- Worker ownership
- Managed workers, application endpoints, connected workers, and self-operated workers transfer different responsibilities.45
- Durable state
- Task runs, event steps, workflow history, and Redis job state support different recovery semantics.3
Official resources
Use the primary documentation to verify runtime behavior, operating limits, service boundaries, and current commercial terms.
Related tools
Starter stacks
Sources
Official documentation supporting the routes and decision boundaries on this page.
- 1Trigger.dev task overview
Trigger.dev · Accessed Official
- 2Inngest documentation
Inngest · Accessed Official
- 3Temporal documentation
Temporal · Accessed Official
- 4BullMQ introduction
BullMQ · Accessed Official
- 5BullMQ production guidance
BullMQ · Accessed Official