What core criteria do enterprise architects evaluate during integration pattern selection and design reviews?
Answer
Basics: Salesforce documents a set of integration patterns: Remote Process Invocation (Request and Reply, Fire and Forget), Batch Data Synchronization, Remote Call-In, UI Update Based on Data Changes, and Data Virtualization. A design review asks questions about the requirement and picks the pattern, rather than starting from a favorite tool.
How it works (review questions):
- Who is the system of record and which way does data flow?
- Does the user need an answer now (sync) or later (async)?
- How many records and how often (single record, thousands, millions)?
- What happens if the other side is down, slow or sends duplicates?
- Is a distributed transaction needed, or is eventual consistency acceptable?
- What are the security class of data and the authentication options?
- What limits apply: callouts, API requests, event allocations, storage?
- Who owns support, monitoring and change management?
Advanced / deep dive: Match answers to tools: low volume and immediate answer leads to Apex callout or External Services; async notification leads to platform events or CDC; high volume leads to Bulk API 2.0 or middleware batch; read-only external data leads to Salesforce Connect; external system pushing data in leads to REST/SOAP/Pub/Sub or Composite. Consider alternatives such as MuleSoft when many systems or transformations exist. Non-functional criteria: idempotency, ordering, retry and dead-letter handling, observability, versioning, latency targets, disaster recovery, licensing and cost. Document decisions as Architecture Decision Records with the trade-offs. Common anti-patterns: polling when events exist, synchronous callouts in bulk triggers, row-by-row API loads, no error strategy, credentials in code.
Code / config example: