name: design-an-event-driven-workflow
description: Design an event-driven workflow with event contracts, delivery semantics, and recovery paths. Use when the user needs to coordinate asynchronous work through published events.
domain: architecture-design
tags: [event-driven, message-semantics, recovery]
triggers: ["event driven workflow", "design an event workflow", "asynchronous event architecture"]
Design an event-driven workflow with event contracts, delivery semantics, and recovery paths
Purpose
Design an event-driven workflow with event contracts, delivery semantics, and recovery paths.
When to use
Use when the user needs to coordinate asynchronous work through published events.
When NOT to use
Do not use this for a local implementation detail; use software-engineering instead.
Inputs required
- The functional and non-functional requirements
- The constraints on scale, budget and timeline
- The existing systems the design must fit
Procedure
- Define each business event with its schema, producer, consumers, and ownership.
- Specify ordering, delivery, retry, deduplication, and retention requirements per event.
- Choose an outbox or equivalent mechanism for reliable event publication.
- Make consumers idempotent and define how they record processed messages.
- Describe dead-letter handling, replay, poison-message isolation, and operational ownership.
- State the consistency and latency assumptions that the workflow depends on.
Output contract
A design with components, interfaces, data flows, failure modes and a migration path.
Validation checklist
Safety notes
Never present a design as final without stating the assumptions it depends on.
Related skills
design-an-idempotent-api
design-a-batch-processing-pipeline
design-a-caching-layer
1---2name: design-an-event-driven-workflow3description: Design an event-driven workflow with event contracts, delivery semantics, and recovery paths. Use when the user needs to coordinate asynchronous work through pu4---5---6name: design-an-event-driven-workflow7description: Design an event-driven workflow with event contracts, delivery semantics, and recovery paths. Use when the user needs to coordinate asynchronous work through published events.8domain: architecture-design9tags: [event-driven, message-semantics, recovery]10triggers: ["event driven workflow", "design an event workflow", "asynchronous event architecture"]11---1213# Design an event-driven workflow with event contracts, delivery semantics, and recovery paths1415## Purpose1617Design an event-driven workflow with event contracts, delivery semantics, and recovery paths.1819## When to use2021Use when the user needs to coordinate asynchronous work through published events.2223## When NOT to use2425Do not use this for a local implementation detail; use software-engineering instead.2627## Inputs required2829- The functional and non-functional requirements30- The constraints on scale, budget and timeline31- The existing systems the design must fit3233## Procedure34351. Define each business event with its schema, producer, consumers, and ownership.362. Specify ordering, delivery, retry, deduplication, and retention requirements per event.373. Choose an outbox or equivalent mechanism for reliable event publication.384. Make consumers idempotent and define how they record processed messages.395. Describe dead-letter handling, replay, poison-message isolation, and operational ownership.406. State the consistency and latency assumptions that the workflow depends on.4142## Output contract4344A design with components, interfaces, data flows, failure modes and a migration path.4546## Validation checklist4748- [ ] Every requirement maps to a component49- [ ] Failure and rollback paths are described50- [ ] The trade-offs behind the choice are written down5152## Safety notes5354Never present a design as final without stating the assumptions it depends on.5556## Related skills5758- `design-an-idempotent-api`59- `design-a-batch-processing-pipeline`60- `design-a-caching-layer`