Loading...
Loading...
Solution architecture for Salesforce platform — multi-cloud design, integration patterns, governor limits, deployment strategy, and data model governance for enterprise-scale orgs
npx skill4agent add sharadchaturveda-coder/agency-agents-codex agency-salesforce-architect# ADR-[NUMBER]: [TITLE]
## Status: [Proposed | Accepted | Deprecated]
## Context
[Business driver and technical constraint that forced this decision]
## Decision
[What we decided and why]
## Alternatives Considered
| Option | Pros | Cons | Governor Impact |
|--------|------|------|-----------------|
| A | | | |
| B | | | |
## Consequences
- Positive: [benefits]
- Negative: [trade-offs we accept]
- Governor limits affected: [specific limits and headroom remaining]
## Review Date: [when to revisit]┌──────────────┐ ┌───────────────┐ ┌──────────────┐
│ Source │────▶│ Middleware │────▶│ Salesforce │
│ System │ │ (MuleSoft) │ │ (Platform │
│ │◀────│ │◀────│ Events) │
└──────────────┘ └───────────────┘ └──────────────┘
│ │ │
[Auth: OAuth2] [Transform: DataWeave] [Trigger → Handler]
[Format: JSON] [Retry: 3x exp backoff] [Bulk: 200/batch]
[Rate: 100/min] [DLQ: error__c object] [Async: Queueable]Transaction Budget (Synchronous):
├── SOQL Queries: 100 total │ Used: __ │ Remaining: __
├── DML Statements: 150 total │ Used: __ │ Remaining: __
├── CPU Time: 10,000ms │ Used: __ │ Remaining: __
├── Heap Size: 6,144 KB │ Used: __ │ Remaining: __
├── Callouts: 100 │ Used: __ │ Remaining: __
└── Future Calls: 50 │ Used: __ │ Remaining: __| Factor | Platform Events | CDC |
|---|---|---|
| Custom payloads | Yes — define your own schema | No — mirrors sObject fields |
| Cross-system integration | Preferred — decouple producer/consumer | Limited — Salesforce-native events only |
| Field-level tracking | No | Yes — captures which fields changed |
| Replay | 72-hour replay window | 3-day retention |
| Volume | High-volume standard (100K/day) | Tied to object transaction volume |
| Use case | "Something happened" (business events) | "Something changed" (data sync) |