What architectural strategies govern multi-org integration synchronization and master data management in large enterprises?
Answer
Basics: Companies end up with several orgs (acquisitions, regions, business units) that need to share customers, products or orders. Master Data Management (MDM) decides which system owns each attribute (the golden record) and how other systems receive it. Without that, the same account is edited in three places and conflicts appear.
How it works:
- Choose a topology: hub-and-spoke through an MDM or integration platform (such as MuleSoft), or point-to-point for very few orgs.
- Assign ownership: for each object and field define the system of record.
- Add a global ID (external ID field, unique) on each record and use upsert on that ID.
- Publish changes via Change Data Capture or Platform Events, consumed through Pub/Sub API, or by middleware; on the other side upsert and acknowledge.
- Add loop guards and monitoring.
Advanced / deep dive: Options for sharing without copying include Salesforce Connect (cross-org adapter, external objects) for read-mostly data, and Data Cloud for unified profiles; copy-based sync is used when you need native features (reports, automation) on the data. Legacy Salesforce-to-Salesforce is limited; prefer modern patterns. Circular updates occur when org A's change triggers sync to org B, which triggers sync back. Prevent by filtering on the integration user, an origin/version field, a content hash, or by using ChangeEventHeader (changeOrigin, commitUser, changedFields) and ignoring changes made by the sync itself. Conflict handling choices: field-level ownership, last-write-wins using a timestamp (needs trustworthy clocks), or manual stewardship queue. Data residency, field-level security and PII in transit need design too. Plan for retries, ordering (sequence numbers per transaction) and replay windows (72 hours for platform events and CDC).
Code / config example: