BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
946 / 1048 · Module 18 — Interview Coding Scenarios← prev⊞ allnext →

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