What architectural governance standards ensure maintainability and scalability across enterprise event-driven landscapes?
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:
- Naming: a consistent pattern such as
Domain_Action_Event__eand a version suffix for breaking changes. - Catalog: each event has an owner, purpose, schema, publishers, subscribers and retention expectations.
- Versioning: additive changes only within a version, and a deprecation window for old ones.
- Security: only specific permission sets can create (publish) or read (subscribe) each event, and integration users are least-privilege.
- Reliability: idempotent consumers, a retry policy, a dead-letter or error-log object, and correlation IDs.
- Monitoring: track published and delivered counts against allocations (for example the
/limitsresource), 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:
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