# What core criteria do enterprise architects evaluate during integration pattern selection and design reviews?

**Topic:** Integration · **Difficulty:** Medium · **Tags:** Integration, Architectural Review, Design Pattern Selection

Read it on the site: https://www.forcechallenges.com/interview-questions/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):**
1. Who is the system of record and which way does data flow?
2. Does the user need an answer now (sync) or later (async)?
3. How many records and how often (single record, thousands, millions)?
4. What happens if the other side is down, slow or sends duplicates?
5. Is a distributed transaction needed, or is eventual consistency acceptable?
6. What are the security class of data and the authentication options?
7. What limits apply: callouts, API requests, event allocations, storage?
8. 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:**
| Need | Pattern | Typical tool |
|---|---|---|
| User waits for answer | Request and Reply | Apex callout, Continuation, External Services |
| Notify, no answer needed | Fire and Forget | Platform events, CDC |
| Nightly millions of rows | Batch Data Sync | Bulk API 2.0, middleware |
| External system writes to SF | Remote Call-In | REST, Composite, Pub/Sub API |
| View remote data | Data Virtualization | Salesforce Connect |

**Hidden gotchas & must-remember points:**
- "Real time" requirements are often "within a minute"; clarify before choosing synchronous.
- Distributed transactions across Salesforce and external systems are not supported; design compensation.
- Limits (daily API, event delivery, callout counts) can decide the architecture.
- Ordering and exactly-once are rarely guaranteed; require idempotency.
- Exam traps: choosing Request and Reply for large volumes, or Batch for sub-second needs.

**Best practice:** Document the decision criteria and chosen trade-offs, and validate the design against limits with a load test before build.

---
Source: ForceChallenges · last updated 2026-11-02
