# What governance frameworks and review standards ensure long-term maintainability across enterprise integration portfolios?

**Topic:** Integration · **Difficulty:** Medium · **Tags:** Integration, Integration Governance, Portfolio Standards

Read it on the site: https://www.forcechallenges.com/interview-questions/what-governance-frameworks-and-review-standards-ensure-long-term-maintainability-across-enterprise

## Answer

**Basics:** Without governance, each team builds point-to-point integrations with different auth methods, hard-coded endpoints and no logging. Over years this creates fragile spaghetti nobody dares touch. Governance defines how integrations are chosen, built, reviewed and retired, usually through an Architecture Review Board or Center of Excellence.

**How it works:**
1. Pattern selection: a decision matrix maps needs to patterns (request/response REST, fire-and-forget Platform Events, Change Data Capture, Bulk API, Salesforce Connect, middleware).
2. Standards: Named Credentials for all endpoints and secrets, one auth standard (OAuth 2.0 JWT or client credentials), naming conventions (`Int_<System>_<Purpose>`), a shared logging framework and a standard retry/idempotency approach.
3. Review checkpoints: design review, security review (least-privilege integration user, scopes), code review, performance test against limits, and a go-live checklist.
4. Registry: an API/integration catalog recording owner, data classification, SLA, volumes, contract version and dependencies.
5. Operate: dashboards and alerts, a runbook, and a deprecation policy.

**Advanced / deep dive:** Treat contracts as products: version APIs (`/v2`), keep schemas backwards compatible, and use contract tests. Prefer API-led layering (system, process, experience APIs, typically with MuleSoft) so Salesforce talks to one stable facade instead of many back ends. Capacity governance matters: track daily API request allocation, concurrent long-running request limits, platform event delivery allocations and Bulk API limits per integration user, and give each integration its own user to attribute usage and isolate failure. Enforce security through Permission Sets for integration users, IP allowlisting, Event Monitoring for API usage and Shield where regulated. Automate the standards: static analysis (PMD rules), CI checks that reject hard-coded URLs, and scratch-org test suites with HTTP mocks. Define failure semantics explicitly: at-least-once delivery means consumers must be idempotent (external ID upserts).

**Code / config example:**
```apex
// Standard: every callout uses a Named Credential, a timeout and logged failures.
HttpRequest req = new HttpRequest();
req.setEndpoint('callout:ERP_Int/v2/orders'); // no hard-coded URL or secret
req.setMethod('POST');
req.setTimeout(30000);
req.setHeader('Content-Type', 'application/json');
req.setBody(JSON.serialize(payload));
HttpResponse res = new Http().send(req);
if (res.getStatusCode() >= 300) {
    IntegrationLogger.error('ERP_Int', res.getStatusCode(), res.getBody()); // shared logger
}
```

**Hidden gotchas & must-remember points:**
- Governance without automation (linters, CI gates) decays; reviews alone do not scale.
- Point-to-point sprawl grows roughly quadratically with systems.
- Shared integration users hide who consumed API limits.
- Callout limits: 100 per transaction, 120 s cumulative timeout.
- Retries without idempotency create duplicate records.
- Retired tools (Workflow outbound messages, Process Builder) should appear on the migration backlog.

**Best practice:** Publish a short, enforced integration playbook with a pattern decision tree, and make Named Credentials, logging and idempotency non-negotiable.

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