1 December 2026 · 3 min read · Download as PDF
Fan-in, recovery and the end of the event story
Fan-out is easy to draw; joining results and recovering safely takes more design. Here is when Step Functions can do the join and when a separate aggregator is needed.
Part 6 of 6 · From Event to Outcome: AWS Messaging Patterns
Fulfilment, notifications and analytics have received OrderPlaced. Fulfilment has started payment and stock checks. When is the order “done”? That depends on which results the business actually needs. If shipping must wait for payment and stock, those two results need a fan-in point. Notification and analytics may be independent side effects that should not hold shipping open.
Part 6 of 6 in From Event to Outcome, a series on AWS messaging patterns.
Where this fits. The workflow from Part 5 has started. For this order, “ready to ship” means payment is approved and stock is reserved. Those two results must come together. Notifications and analytics can complete on their own schedules. If the order stalls, first identify whether event delivery, queue processing or the workflow itself failed. That determines which recovery action to take.

TL;DR
- Within one Step Functions execution, Parallel waits for its branches; Map repeats the same work over items and gathers results.
- Across independent event subscribers, the bus does not join responses. Build a coordinator or aggregator if the business requires one combined answer.
- Recovery has layers: target delivery failure, queue processing failure and workflow failure are different incidents.
- An EventBridge archive and replay can resend events to the source bus. A replay may repeat side effects, so the consumers still need idempotency.
Two kinds of fan-in
In the fulfilment workflow, payment and stock checks can run in a Parallel state. The workflow advances when both branches finish successfully. Check that both business outcomes are approved before shipping, and compensate for any completed side effect if the other check fails. If there are many order lines, a Map state can process each line and collect the results. Step Functions owns the execution and its completion status, which makes this the simplest fan-in when all required work belongs to one process.
Suppose instead that three autonomous teams subscribe to OrderPlaced and each emits a completion event. EventBridge routes those facts but does not wait for all three. An aggregator can store a row keyed by orderId, mark each required completion as it arrives and emit OrderReady when the required set is complete. A timeout decides what happens if one result never arrives. Use conditional writes so repeated completions count once. Save the ready state and an outbox record in the same transaction, so a crash between the state change and publication cannot lose OrderReady.
Do not wait for branches that are merely informative. The analytics team may process an order hours later; shipping should probably not depend on that dashboard update. Write the business completion rule first, then choose the join.
Choose recovery by failure point
An EventBridge target DLQ catches a failed delivery to a target. An Amazon Simple Queue Service (SQS) DLQ holds work a consumer repeatedly could not process. For a failed Step Functions execution, inspect execution history and use Standard workflow redrive if the execution is eligible. Redrive normally resumes from the failed step, but a failed task may already have produced a side effect. Check the order or payment record before retrying. Alert on each layer and assign an owner. Redriving a queue or replaying an event can be safe only after checking which downstream actions already happened.
A Classic EventBridge archive can replay events to the bus they came from, including to a selected set of rules. That is useful for rebuilding a new subscriber or recovering a missed window. It is not a substitute for an application ledger. Before a replay, decide whether old orders should be re-fulfilled, merely re-analysed or ignored by a specific subscriber. The event’s correlation ID and business idempotency keys make that decision inspectable.
The series ends with a test: can you trace one order from the client’s request to its business outcome, explain every retry, and recover it without charging or shipping twice? If yes, the architecture is doing more than moving messages.
From Event to Outcome
- SQS, SNS and EventBridge: choose by the job (Amazon Simple Queue Service, Simple Notification Service and EventBridge)
- Publishing an event without losing the order
- Fan-out without coupling every consumer
- The consumer is where reliability becomes real
- Events into Step Functions: rule, pipe or API?
- Fan-in, recovery and the end of the event story (you’re here)