---
schema_version: "1"
id: 852aa994f2b9cc72fbac522923970c9717497c7fd38e756173c4100517a61aed
title: 模式和反模式
collection: architect
version: current
locale: zh-cn
portal_url: https://docs.salesforce.com/architect/current/zh-cn/well-architected/guides/patterns-and-anti-patterns.md
canonical_url: https://architect.salesforce.com/docs/architect/zh-cn/well-architected/guide/patterns-and-anti-patterns.html
source_site: architect.salesforce.com
content_type: documentation
content_hash: 7a314c47bc34d960f74b9c24bb1594b39f7a491b3c87144383467ae25e5c9696
products:
  - 架构良好的框架
  - Architect Site Content Repo
---
# 模式和反模式资源管理器


经过验证的架构模式 (✅) 和避免的常见陷阱 (⚠⸏)，由良好架构框架的六个支柱组织。

---

## Trust

通过现代安全性、最低权限访问、隐私控制和明确治理，保护您的解决方案、数据和用户。

<table>
<tr>
<th colspan="3">Trust - 模式和反模式</th>
</tr>
<tr>
<td><b>身份和访问权限</b><ul><li><a href="https://architect.salesforce.com/docs/architect/zh-cn/well-architected/guide/trust-identity-access-patterns">身份验证、授权、重要影响客户、身份生命周期</a></li></ul></td>
<td><b>数据保护和隐私</b><ul><li><a href="https://architect.salesforce.com/docs/architect/zh-cn/well-architected/guide/trust-data-protection-patterns">数据分类、加密、屏蔽、按设计的隐私、数据驻留</a></li></ul></td>
<td><b>合规性和治理</b><ul><li><a href="https://architect.salesforce.com/docs/architect/zh-cn/well-architected/guide/trust-compliance-patterns">监管合规、审计跟踪、安全状况、风险管理</a></li></ul></td>
</tr>
<tr>
<td><b>事件响应</b><ul><li><a href="https://architect.salesforce.com/docs/architect/zh-cn/well-architected/guide/trust-incident-response-patterns">检测、分类、取证、恢复、事件后审查</a></li></ul></td>
<td><b>分担责任</b><ul><li><a href="https://architect.salesforce.com/docs/architect/zh-cn/well-architected/guide/trust-shared-responsibility-patterns">平台与客户责任、认证、合规边界</a></li></ul></td>
<td></td>
</tr>
</table>

---

## 可靠性

设计用于持续可用性、从中断中快速恢复以及根据意外需求进行扩展的能力。

<table>
<tr>
<th colspan="3">可靠性 - 模式和反模式</th>
</tr>
<tr>
<td><b>可用性和性能</b><ul><li><a href="https://architect.salesforce.com/docs/architect/zh-cn/well-architected/guide/reliability-availability-performance-patterns">风险管理、故障缓解、SLO、高可用性、延迟、吞吐量</a></li></ul></td>
<td><b>可扩展性和容量</b><ul><li><a href="https://architect.salesforce.com/docs/architect/zh-cn/well-architected/guide/reliability-scalability-patterns">数据建模、数据量、批量加载、调控器限制、水平缩放</a></li></ul></td>
<td><b>灾难恢复</b><ul><li><a href="https://architect.salesforce.com/docs/architect/zh-cn/well-architected/guide/reliability-disaster-recovery-patterns">备份和还原、业务连续性、RPO/RTO、冗余</a></li></ul></td>
</tr>
</table>

---

## 卓越运营

将全面的可观察性构建到您的解决方案中，并通过定义明确的程序和自动化来管理它。

<table>
<tr>
<th colspan="3">卓越运营 - 模式和反模式</th>
</tr>
<tr>
<td><b>DevOps 和发布管理</b><ul><li><a href="https://architect.salesforce.com/docs/architect/zh-cn/well-architected/guide/operational-excellence-devops-patterns">源驱动开发、环境策略、发布管理、CI/CD、测试、打包</a></li></ul></td>
<td><b>自动化和效率</b><ul><li><a href="https://architect.salesforce.com/docs/architect/zh-cn/well-architected/guide/operational-excellence-automation-patterns">KPI、操作逻辑、流程设计、数据完整性、错误处理</a></li></ul></td>
<td>可<b>观察性</b><ul><li><a href="https://architect.salesforce.com/docs/architect/zh-cn/well-architected/guide/operational-excellence-observability-patterns">监控、记录、警报、SLI/SLO、平台运行状况</a></li></ul></td>
</tr>
<tr>
<td><b>事件管理</b><ul><li><a href="https://architect.salesforce.com/docs/architect/zh-cn/well-architected/guide/operational-excellence-incident-patterns">检测、随叫随到、上报、事件后审查、Runbook</a></li></ul></td>
<td></td>
<td></td>
</tr>
</table>

---

## 资源和成本优化

高效使用资源，最大限度地减少延迟，保持系统的可组合性，随着时间的推移保持性能，并使您的支出与您提供的业务价值保持一致。

<table>
<tr>
<th colspan="3">资源和成本优化 - 模式和反模式</th>
</tr>
<tr>
<td><b>代码质量和可维护性</b><ul><li><a href="https://architect.salesforce.com/docs/architect/zh-cn/well-architected/guide/resource-and-cost-optimization-code-quality-patterns">标准与自定义、技术债务、设计标准、文档、治理</a></li></ul></td>
<td><b>架构和可编写性</b><ul><li><a href="https://architect.salesforce.com/docs/architect/zh-cn/well-architected/guide/resource-and-cost-optimization-architecture-patterns">功能单元、问题分离、状态管理、API 管理、消息传递</a></li></ul></td>
<td><b>许可证优化</b><ul><li><a href="https://architect.salesforce.com/docs/architect/zh-cn/well-architected/guide/resource-and-cost-optimization-license-patterns">适当规模、加载项、治理、合同、多组织影响</a></li></ul></td>
</tr>
<tr>
<td><b>存储和 API</b><ul><li><a href="https://architect.salesforce.com/docs/architect/zh-cn/well-architected/guide/resource-and-cost-optimization-storage-api-patterns">数据生命周期、文件存储、Sandbox 策略、API 效率</a></li></ul></td>
<td><b>成本治理</b><ul><li><a href="https://architect.salesforce.com/docs/architect/zh-cn/well-architected/guide/resource-and-cost-optimization-governance-patterns">监控、预算、FinOps、构建与购买</a></li></ul></td>
<td><b>代理模式</b><ul><li><a href="https://architect.salesforce.com/docs/architect/zh-cn/well-architected/guide/resource-and-cost-optimization-agentic-patterns">为资源和成本效率设计客服人员</a></li></ul></td>
</tr>
</table>

---

## 公平性

确保您的解决方案是可访问的、非歧视性的和透明的，并对 AI 驱动的决策进行适当的人为监督。

<table>
<tr>
<th colspan="2">公平性 - 模式和反模式</th>
</tr>
<tr>
<td><b>可访问性和用户体验</b><ul><li><a href="https://architect.salesforce.com/docs/architect/zh-cn/well-architected/guide/fairness-accessibility-patterns">WCAG 合规性、屏幕阅读器支持、键盘导航、视觉设计、可访问性测试</a></li></ul></td>
<td><b>AI 道德和治理</b><ul><li><a href="https://architect.salesforce.com/docs/architect/zh-cn/well-architected/guide/fairness-ai-ethics-patterns">偏见检测、缓解、可解释性、人工监督、不歧视、同意、合规性、审计跟踪</a></li></ul></td>
</tr>
</table>

---

