You are implementing an Azure Durable Functions application that processes orders. The function must call three external APIs (payment gateway, inventory system, and shipping calculator) in parallel, then aggregate the results once all three have completed. Which Durable Functions pattern should you use?
Trap 1: Function chaining
Function chaining executes activities sequentially, not in parallel.
Trap 2: Monitor
Monitor pattern repeatedly checks an external state, not used for parallel execution.
Trap 3: Human interaction
Human interaction pattern waits for an external manual signal, not parallel API calls.
- A
Function chaining
Why wrong: Function chaining executes activities sequentially, not in parallel.
- B
Fan-out/Fan-in
Fan-out calls multiple activity functions in parallel, and fan-in waits for all to complete before aggregating results.
- C
Monitor
Why wrong: Monitor pattern repeatedly checks an external state, not used for parallel execution.
- D
Human interaction
Why wrong: Human interaction pattern waits for an external manual signal, not parallel API calls.