Prompt
Do I need a workflow engine for multi-step async jobs?
Latest observation
Oct 24, 2026
OpenAI APIWeb search: off
Not always.
A workflow engine is useful for multi-step async jobs when you need more than just “run these tasks in order.” You probably want one if you need any of these:
- Durability / recovery: jobs must survive restarts, crashes, deploys
- Retries with state: failed steps should resume safely
- Long-running steps: minutes to days
- Human-in-the-loop: waiting for approval, callback, webhook, etc.
- Complex branching: conditional paths, parallel steps, compensations
- Visibility: audit trail, progress tracking, debugging
- Exactly-once-ish orchestration: avoid duplicated side effects
- Timers / delays: wait 10 minutes, retry later, SLA handling
If your job is simpler, you may not need one. A basic queue + worker + database can be enough if:
- steps are short
- failures are rare or easy to retry
- state can be stored in your DB
- you don’t need advanced orchestration or observability
Rule of thumb
Use a workflow engine when the process is basically a business process with state, retries, branching, and long waits.
Use a queue/job system when it’s mostly background processing.
Common middle ground
Many teams start with:
- a queue (SQS/RabbitMQ/Kafka/Redis queue)
- a DB record for job state
- idempotent workers
- retry logic
- a small state machine
Then graduate to a workflow engine when the orchestration becomes painful.
Good workflow engines / orchestrators
- Temporal: great for durable, code-first workflows
- AWS Step Functions: good if you’re already on AWS
- Argo Workflows: common in Kubernetes/data pipelines
- Airflow: better for scheduled data pipelines than general app workflows
- Camunda / Zeebe: BPMN/business process style
Simple decision test
If you can answer “yes” to 2–3 of these, a workflow engine is worth considering:
- Will this job take longer than a typical request timeout?
- Can it fail halfway and need resuming from where it left off?
- Does it involve multiple services?
- Do I need retries with backoff and state?
- Do I need to see where each execution is stuck?
- Will I need to pause, wait, or branch based on external events?
If you want, I can help you decide for your specific job by asking 5 quick questions.