Prompt
What should I use for routing requests and approval chains
Latest observation
Oct 16, 2026
OpenAI APIWeb search: off
If you mean how to design routing for requests and approval chains in a workflow system, the best choice depends on complexity and scale. Here’s a practical guide:
Good options
-
Simple rules-based routing
- Best for: straightforward approval paths
- Example: “If amount < $5k, manager approves; otherwise director approves.”
- Easy to implement and maintain
-
Workflow engine
- Best for: multi-step approvals, branching logic, escalations, SLAs
- Examples: Camunda, Temporal, Zeebe, Apache Airflow (more data/workflow-oriented), n8n/Node-RED for lighter automation
- Good when you need auditability and visibility
-
State machine / decision table
- Best for: clearly defined approval states and conditions
- Works well with business rules that change often
- Examples: using a state machine library or decision tables in DMN
Recommendation by scenario
- Small app / low complexity: use database-driven rules + simple workflow logic
- Enterprise approvals: use a workflow engine with decision tables
- Highly reliable distributed processes: use Temporal
- BPM-heavy business processes: use Camunda/Zeebe
What to avoid
- Hardcoding approval paths in controller logic
- Deep nested
if/elsechains - Sending approvals purely through ad hoc background jobs without tracking state
Best practice
Store these separately:
- Routing rules
- Current approval state
- Approval history / audit log
- Escalation timers and notifications
If you want, I can also recommend a specific stack based on:
- your language/framework,
- number of approval levels,
- whether approvals are dynamic or fixed,
- and whether you need audit/compliance.