Canonical: https://weaveos.com/zh-cn/glossary/efferent-coupling

[首页](https://weaveos.com/zh-cn)/[术语表](https://weaveos.com/zh-cn/glossary)/[Code quality and technical debt](https://weaveos.com/zh-cn/glossary/category/code-quality-technical-debt)/传出耦合

[Code quality and technical debt](https://weaveos.com/zh-cn/glossary/category/code-quality-technical-debt)

# 传出耦合

也称为 传出耦合, 软件工程中的传出耦合

作者：Weave发布于 2026年9月10日1 分钟阅读

## 定义

组件向其他组件发出的依赖项数量。

在本页中

1. [定义](https://weaveos.com/zh-cn/glossary/efferent-coupling#definition)
2. [它的含义](https://weaveos.com/zh-cn/glossary/efferent-coupling#article-section)
3. [示例](https://weaveos.com/zh-cn/glossary/efferent-coupling#article-section-2)
4. [局限性](https://weaveos.com/zh-cn/glossary/efferent-coupling#article-section-3)
5. [如何使用该信号](https://weaveos.com/zh-cn/glossary/efferent-coupling#article-section-4)
6. [这与 Weave 有何关系](https://weaveos.com/zh-cn/glossary/efferent-coupling#weave)
7. [来源](https://weaveos.com/zh-cn/glossary/efferent-coupling#sources)
8. [相关术语](https://weaveos.com/zh-cn/glossary/efferent-coupling#related)

## 它的含义

传出耦合（Efferent coupling）衡量目标组件依赖于多少外部组件。它描述了外部知识，并可以指示集成广度、设置负担或潜在的故障路径。高值对于编排器来说可能是合适的，但当它集中在业务关键代码中时，值得关注。

## 示例

服务协调员调用身份、库存、定价、税收和通知模块。映射其外部依赖关系有助于团队决定哪些调用需要超时、合同或更窄的应用程序边界。

## 局限性

该计数忽略了依赖项权重和运行时频率。一个具有两个关键远程依赖项的组件可能比具有十个本地辅助组件的组件风险更高。将此指标视为关系图，而不是可靠性度量。

## 如何使用该信号

在将计数视为架构风险之前，请检查外部关系是本地的、远程的、可选的还是故障敏感的。

Weave 可以帮助比较高传出耦合变更与队列时间、审查迭代和事件。将延迟和故障证据保留在可观测性系统中，并使用此架构信号来集中调查。

## 这与 Weave 有何关系

Weave 可以帮助比较高传出耦合变更与队列时间、审查迭代和事件。将延迟和故障证据保留在可观测性系统中，并使用此架构信号来集中调查。

[探索 工程智能](https://weaveos.com/zh-cn/products/engineering-intelligence)

## 来源与延伸阅读

1. [SonarSource code metrics and analysis documentation](https://docs.sonarsource.com/sonarqube-server/latest/user-guide/code-metrics/metrics-definition/)

## 相关术语

### [代码审查](https://weaveos.com/zh-cn/glossary/code-review)

[了解代码审查、审查者应检查的内容，以及如何在不混淆速度与有效性的前提下评估审查质量。](https://weaveos.com/zh-cn/glossary/code-review)

### [工程指标](https://weaveos.com/zh-cn/glossary/engineering-metrics)

[工程指标实用指南，包括其局限性以及团队如何结合交付上下文使用它们。](https://weaveos.com/zh-cn/glossary/engineering-metrics)
