BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
187 / 1048 · Module 6 — Mule Routing and Orchestration← prev⊞ allnext →

6.18Scatter-Gather vs Parallel For Each

This distinction is important.

Parallel For Each

Same logic applied to many items:

customer 1
customer 2
customer 3

all run through the same processing scope
Scatter-Gather

Different routes applied to the same event:

same customer request

→ Salesforce route
→ Billing route
→ Loyalty route

Think:

Parallel For Each
= parallelize collection processing

Scatter-Gather
= parallelize independent branches

Memorize that.