BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
890 / 1048 · Module 17 — Interview System-Design Scenarios← prev⊞ allnext →

17.36Better architecture

Potential hybrid:

POST signup
 ↓
validate
 ↓
create core customer
 ↓
persist state
 ↓
publish CustomerCreated
 ↓
response

Then:

CustomerCreated
 ├→ Salesforce consumer
 ├→ Billing consumer
 └→ Email consumer

Or keep critical operations orchestrated and make email async.

Example:

Salesforce Upsert
 ↓
Billing customer creation
 ↓
publish CustomerOnboarded
 ↓
return success

event consumer
 ↓
send welcome email