# What architectural governance standards ensure maintainability and scalability across enterprise event-driven landscapes?

**Topic:** Integration · **Difficulty:** Medium · **Tags:** Integration, Architecture Governance, Event-Driven Standards

Read it on the site: https://www.forcechallenges.com/interview-questions/what-architectural-governance-standards-ensure-maintainability-and-scalability-across-enterprise-event-driven

## Answer

**Basics:** Events make integrations loosely coupled, but without rules an org can end up with duplicate, inconsistent events, unknown subscribers and silent failures. Governance keeps the system understandable and safe as it grows.

**How it works:** Typical standards include:
1. Naming: a consistent pattern such as `Domain_Action_Event__e` and a version suffix for breaking changes.
2. Catalog: each event has an owner, purpose, schema, publishers, subscribers and retention expectations.
3. Versioning: additive changes only within a version, and a deprecation window for old ones.
4. Security: only specific permission sets can create (publish) or read (subscribe) each event, and integration users are least-privilege.
5. Reliability: idempotent consumers, a retry policy, a dead-letter or error-log object, and correlation IDs.
6. Monitoring: track published and delivered counts against allocations (for example the `/limits` resource), trigger failures and lag.

**Advanced / deep dive:** Decide when to use Change Data Capture versus a custom platform event: CDC for "a record changed", custom events for business-level facts such as `OrderShipped`. Set capacity budgets per team because publish and delivery allocations are shared across the org. Document replay and recovery steps, since the bus retains events for about 72 hours (verify), after which a source-of-truth resync is needed. Add contract tests in CI, review new events in a design board, and use source control for event metadata. Set trigger batch sizes and subscriber users deliberately with `PlatformEventSubscriberConfig`.

**Code / config example:**
```text
Event standard (example)
Name:        Billing_InvoicePaid_v1__e
Owner:       Billing team
Required:    Invoice_Id__c, Paid_At__c, Version__c
Consumers:   ERP sync (Pub/Sub), Case Flow (Flow trigger)
SLO:         processed < 5 min; alert if lag > 15 min
Deprecation: v1 retired 90 days after v2 GA
```

**Hidden gotchas & must-remember points:**
- Allocations are org-wide, so one noisy publisher can starve everyone.
- Undocumented subscribers make breaking changes dangerous.
- Retries without idempotency create duplicate side effects.
- Failures in triggers can be invisible without logging and alerts.
- Permissions on events are separate from object permissions, so audit them.
- Event metadata must be deployed in the right order with its subscribers.

**Best practice:** Maintain a lightweight event catalog with owners, versions and SLOs, and review capacity and failures regularly.

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