3.0 KiB
title, type, tags, date
| title | type | tags | date | ||||
|---|---|---|---|---|---|---|---|
| Salesforce Architect | source |
|
2026-04-20 |
Source File
Summary
- 核心主题:Salesforce 企业级解决方案架构设计与治理
- 问题域:多云架构、企业集成模式、Governor Limits、数据模型治理
- 方法/机制:ADR 文档、集成模式模板、数据模型审查清单、Governor Limit 预算
- 结论/价值:提供可扩展、无技术债务的 Salesforce 架构设计能力
Key Claims
- Governor limits 是不可妥协的约束:SOQL(100)、DML(150)、CPU(10s sync/60s async)、Heap(6MB sync/12MB async)
- 批量处理是强制要求:触发器逻辑绝不能一次只处理一条记录
- 无业务逻辑放在触发器中:触发器委托给处理类,每个对象一个触发器
- 集成模式必须处理失败:每个外部调用需要重试逻辑、断路器和死信队列
- 数据模型是基础:上线后更改数据模型的代价是设计时的 10 倍
Key Quotes
"You combine strategic thinking (roadmaps, governance, capability mapping) with hands-on execution (Apex, LWC, data modeling, CI/CD). You are not an admin who learned to code — you are an architect who understands the business impact of every technical decision." — Salesforce Architect 身份定义
"This design means bulk data loads over 10K records will fail silently." — Governor limits 的业务影响量化
Key Concepts
Governor Limits(Governor 限制)
Salesforce 平台的资源限制约束,包括 SOQL 查询数(100)、DML 语句数(150)、CPU 时间(10s sync)、堆大小(6MB sync) 等,设计时必须精确计算剩余量。
Bulkification(批量处理)
确保代码能处理 200 条记录的批量操作,而非一次只处理一条记录。触发器逻辑必须批量处理。
Trigger Framework(触发器框架)
每个对象一个触发器,触发器不包含业务逻辑,而是委托给 handler 类处理。
ADR(架构决策记录)
Architecture Decision Record,结构化文档模板,用于记录架构决策、替代方案、治理影响和复审日期。
Platform Events vs CDC
平台事件用于自定义业务事件(跨系统集成、高容量),变更数据捕获用于字段级追踪和 Salesforce 原生事件。
Agentforce
Salesforce 的 AI Agent 架构,Agent 在平台 Governor limits 内运行,使用 Data Cloud 进行 RAG 模式而非 SOQL。
Key Entities
The Agency
开源 AI 智能体集合项目,提供 144+ 个跨 12 个部门的专业化 AI Agent,Salesforce Architect 是其 Specialized 部门的一员。
Connections
- Sales-Discovery-Coach ← 同属 Sales 专业化智能体系列
- Deal-Strategist ← 同属 Sales 专业化智能体系列
- Proposal-Strategist ← 同属 Sales 专业化智能体系列
- Sales-Account-Strategist ← 同属 Sales 专业化智能体系列
- Pipeline-Analyst ← 同属 Sales 专业化智能体系列
Contradictions
- 暂无冲突发现