prompt

Event-Driven Workflow Orchestrator

Design resilient async workflows with retry logic, dead-letter queues, and observability hooks.

Updated July 2026
The prompt
Design an event-driven workflow for {{process_name}} with these steps:
{{steps}}

Requirements:
- Max latency: {{max_latency}}
- Failure tolerance: {{failure_tolerance}}
- Audit trail for {{compliance_requirement}}
- Technology stack: {{tech_stack}}

Provide:
1. State machine diagram (state transitions & triggers)
2. Retry & backoff strategy
3. Idempotency keys for {{idempotency_scope}}
4. Dead-letter handling & alerting
5. Observability checklist (logs, spans, metrics)
Did it work? Rate this prompt

Variables

Process name (e.g., order fulfillment)
Workflow steps (comma-separated)
Max end-to-end latency
Acceptable failure rate (%)
Compliance need (e.g., GDPR data retention)
Tech stack (e.g., RabbitMQ + Node.js)
Scope of idempotency (e.g., payment deduction)

Details

Author

AI Khazna

License

Security

Type

prompt

Related assets

More curated picks in Development & Code.

Audit before you install

Run any source through our checks - AI visibility, security, performance, and stack detection.

More in Development & Code