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.