Prompt
Should I use a workflow engine instead of a message queue?
Latest observation
Oct 24, 2026
OpenAI APIWeb search: off
It depends on what you need to coordinate.
Use a message queue when:
- You need to move work from one service to another
- Tasks are independent or only loosely ordered
- You want simple async processing
- You mainly need buffering, retry, and decoupling
- Example: “Process this email,” “resize this image,” “send this webhook”
A queue is usually the better choice if you just need:
- producer → consumer
- at-least-once delivery
- backpressure handling
- simple retries/DLQ
Use a workflow engine when:
- A business process has multiple steps
- Steps have dependencies, branching, timers, compensation, human approval, or long-running state
- You need to track progress across many tasks
- You want built-in handling for:
- retries per step
- timeouts
- state persistence
- resumability after failure
- manual intervention
- Example: “Order placed → authorize payment → reserve inventory → ship → notify customer, with rollback if payment fails”
A workflow engine is better when you need:
- orchestration
- durable state
- visibility into the process
- step-by-step control
Rule of thumb
Ask:
“Am I just delivering jobs?”
Use a queue.
“Am I managing a process?”
Use a workflow engine.
Common signs you may need a workflow engine
If your queue-based system is becoming:
- full of ad hoc state in databases
- dependent on “job A must finish before job B”
- hard to retry safely
- hard to inspect/debug
- full of custom timeout logic
- difficult to resume after crashes
…then a workflow engine may be a better fit.
Common signs a queue is enough
If your system is:
- mostly stateless tasks
- one message triggers one action
- ordering isn’t critical
- failure handling is simple
- you don’t need a central view of the whole process
…then a queue is simpler and usually preferable.
Practical guidance
- Start with a queue if the problem is simple.
- Move to a workflow engine when coordination complexity becomes the real problem.
- Don’t use a workflow engine just because you have async tasks—it adds operational and conceptual overhead.
Examples of workflow engines
- Temporal
- AWS Step Functions
- Netflix Conductor
- Camunda / Zeebe
- Durable Functions
If you want, I can help you decide for your specific case if you describe:
- the process,
- whether steps can fail/retry independently,
- whether you need human approvals or long-running state.