6.40Scatter-Gather and side effects
Be careful using Scatter-Gather for multiple writes:
┌→ Salesforce create
Request → SG ─┼→ Billing create
└→ ERP create
What if:
Salesforce success
Billing success
ERP failure
You now have partial state across systems.
Scatter-Gather doesn't magically give you:
distributed ACID transaction
You may need:
compensation
retry
reconciliation
saga-style design
This is an important senior-level integration concept.