18.21Scenario 20 — Parallel calls
Prompt:
“Fetch Salesforce, Billing and Loyalty data concurrently.”
Sketch:
<scatter-gather>
<route>
<flow-ref name="get-salesforce-customer"/>
</route>
<route>
<flow-ref name="get-billing-customer"/>
</route>
<route>
<flow-ref name="get-loyalty-customer"/>
</route>
</scatter-gather>
Then transform the route results.
The interview point:
Scatter-Gather
=
same logical request
→ multiple independent routes