Prompt
I'm building async image processing, should I use a queue or a workflow engine?
Latest observation
Oct 24, 2026
OpenAI APIWeb search: off
It depends on how much coordination your image pipeline needs.
Use a queue if:
Your async image processing is mostly:
- fire-and-forget
- single-step or simple multi-step
- tolerant of occasional retries
- driven by throughput rather than complex orchestration
Typical examples:
- resize image
- generate thumbnail
- run OCR
- extract metadata
- notify when done
A queue is usually enough if you only need:
- decoupling between upload and processing
- retry / dead-letter handling
- horizontal scaling
- backpressure control
Good fit: RabbitMQ, SQS, Redis queues, Kafka consumers, etc.
Use a workflow engine if:
Your image processing involves multiple dependent steps with state, branching, or long-running execution.
Typical examples:
- upload → virus scan → resize → ML inference → human review → publish
- conditional logic based on image type or confidence score
- fan-out/fan-in across many subtasks
- pause/resume, timers, approvals, compensation
- visibility into the full lifecycle per image/job
A workflow engine helps when you need:
- stateful orchestration
- durable execution
- retries per step
- step-level observability
- checkpointing / resuming
- human-in-the-loop
- exactly-once-ish business flow semantics (practically, durable progress)
Examples: Temporal, AWS Step Functions, Cadence, Zeebe.
Practical rule of thumb
Ask:
1) Is it just “process this image”?
Use a queue.
2) Is it “coordinate a business process around this image”?
Use a workflow engine.
Common architecture
Many teams do both:
- Queue for simple worker scaling and burst handling
- Workflow engine for the orchestration layer if the pipeline is complex
For example:
- API receives image
- workflow starts
- workflow schedules tasks onto workers/queues
- workers do CPU-heavy processing
- workflow tracks progress and completion
Recommendation for image processing
If you're early-stage and your pipeline is simple, start with a queue.
Move to a workflow engine when you hit:
- many steps
- branching logic
- need for auditability/visibility
- long-running jobs
- manual approvals or callbacks
- frequent partial failures that are hard to coordinate
If you want, I can also give you a decision matrix or a reference architecture for image uploads + async processing.