# 松耦合

**松耦合**（Loose coupling）是软件系统的一种设计属性，指每个组件对其他独立组件的定义知之甚少或一无所知；它与紧耦合相对。<sup>[1](https://ieeexplore.ieee.org/ielx7/6287639/10005208/10147219.pdf)</sup> 耦合本身衡量的是组件之间相互依赖的程度，当一个组件的变更对其他组件影响极小时，系统就是松耦合的。<sup>[2](https://docs.aws.amazon.com/prescriptive-guidance/latest/database-decomposition/cohesion-coupling.html)</sup> 美国国家标准与技术研究院（NIST）的安全控制目录将耦合定义为一个模块对其他模块的依赖关系，并指导设计者保持低耦合、高内聚。<sup>[3](https://csf.tools/reference/nist-sp-800-53/r4/sc/sc-3/sc-3-4/)</sup> 在交付实践中，DORA 将松耦合视为独立于系统其余部分变更和部署某一组件的能力，且无需团队之间的协调开销。<sup>[4](https://dora.dev/research/2022/dora-report/2022-dora-accelerate-state-of-devops-report.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 每个组件对其他独立组件的定义知之甚少或一无所知；与紧耦合相对<sup>[1](https://ieeexplore.ieee.org/ielx7/6287639/10005208/10147219.pdf)</sup> |
| 操作性检验 | 如果一个设计允许某个服务被孤立地测试，那么按其定义，其接口就是松耦合的<sup>[4](https://dora.dev/research/2022/dora-report/2022-dora-accelerate-state-of-devops-report.pdf)</sup> |
| 分布式系统判据 | 仅通过消息传递进行通信的进程是松耦合的；共享内存通信则是紧耦合的<sup>[5](https://archives.iw3c2.org/www2009/proceedings/pdf/p911.pdf)</sup> |
| 量化维度 | 一项 WWW 2009 的研究识别出 Web 服务技术中耦合的 12 个维度；没有任何单一技术在所有维度上都是松耦合的<sup>[5](https://archives.iw3c2.org/www2009/proceedings/pdf/p911.pdf)</sup> |
| 可靠性效应 | 松耦合的依赖关系将故障面最小化到组件级别，有助于诊断和解决问题<sup>[6](https://docs.aws.amazon.com/wellarchitected/latest/reliability-pillar/rel_prevent_interaction_failure_loosely_coupled_system.html)</sup> |
| 交付效应 | 凭借松耦合的架构和团队，部署频率应提高，检测和从问题中恢复的时间应缩短<sup>[7](https://dora.dev/capabilities/loosely-coupled-teams/)</sup> |
| 实证告诫 | 一项实验测试发现，耦合与内聚对维护工作量存在显著的交互效应，而二者单独均无主效应<sup>[8](https://dl.acm.org/doi/10.1109/TSE.2005.130)</sup> |

## 定义与核心思想

耦合是一种模块间属性：它衡量两个软件模块之间的相互依赖程度，模块质量随耦合降低而提高。<sup>[9](https://staff.emu.edu.tr/alexanderchefranov/Documents/CMSE520/CMSE520%20Fall%202024/Dhama1995%20Quantitative%20models%20of%20Cohesion%20and%20Coipling%20in%20Software.pdf)</sup> 松耦合是一个程度问题，而非二元状态。梅利尔·佩奇-琼斯（Meilir Page-Jones）1988 年的《结构化系统设计实用指南》描述了从松到紧的多种耦合形式，分布式系统研究员、IEEE《互联网计算》专栏作家史蒂夫·维诺斯基（Steve Vinoski）指出，经典度量过于黑白分明，无法刻画这一谱系。<sup>[10](https://steve.vinoski.net/pdf/IEEE-Old_Measures_for_New_Services.pdf)</sup>

耦合之所以为“松”，在于一个组件必须对另一个组件了解的范围很窄。一项关于 Web 服务技术的 WWW 2009 研究识别出耦合的 12 个不同维度，涵盖粒度和演化等方面，并发现没有任何单一技术在所有维度上都是松耦合的；在某些维度上，松耦合取决于具体的设计决策而非技术选择。<sup>[5](https://archives.iw3c2.org/www2009/proceedings/pdf/p911.pdf)</sup> WSDL 服务描述说明了这种模糊性：它可以通过实现语言无关的互操作性来放松耦合，但当生成的客户端在接口变更时失效，又会收紧耦合。<sup>[5](https://archives.iw3c2.org/www2009/proceedings/pdf/p911.pdf)</sup>

## 概念的起源与演变

该术语通过结构化设计进入软件工程领域。拉里·康斯坦丁（Larry Constantine）在 20 世纪 60 年代末将耦合与内聚一同引入，作为结构化设计传统的一部分，高质量的系统被认为应展现松耦合而非紧耦合。<sup>[10](https://steve.vinoski.net/pdf/IEEE-Old_Measures_for_New_Services.pdf)</sup> ACM“软件工程经典”系列的一篇回顾文章指出，“耦合”一词最早由康斯坦丁引入，而不隐藏信息的典型后果就是模块间的过度耦合。<sup>[11](https://dl.acm.org/doi/abs/10.5555/1241515.1241527)</sup> WWW 2009 的论文将计算机科学中“松耦合”一词的起源追溯至 1974 年，其源头可追溯至 1967 年关于组织结构的研究。<sup>[5](https://archives.iw3c2.org/www2009/proceedings/pdf/p911.pdf)</sup> 这两种断代在概念何时定型上存在分歧，且该差异尚未解决。

**信息隐藏。** 大卫·L·帕纳斯（David L. Parnas）1972 年的论文《论将系统分解为模块的准则》，发表于《ACM 通讯》1972 年 12 月号，将信息隐藏确立为模块化的准则：每个模块对所有其他模块隐藏一项设计决策，其接口的选择旨在尽可能少地暴露内部工作机制。<sup>[12](https://cw.fel.cvut.cz/old/_media/courses/a4m33sep/materialy/architecture_and_design/01-article_original_de_parnas.pdf)</sup><sup> • </sup><sup>[11](https://dl.acm.org/doi/abs/10.5555/1241515.1241527)</sup> 帕纳斯认为，模块化的有效性取决于划分系统所用的准则，而信息隐藏式分解提高了可变更性和可理解性。<sup>[12](https://cw.fel.cvut.cz/old/_media/courses/a4m33sep/materialy/architecture_and_design/01-article_original_de_parnas.pdf)</sup> 贝克（Beck）和迪尔（Diehl）的 FSE 2011 研究将低耦合/高内聚原则归功于史蒂文斯（Stevens）等人，并指出信息隐藏已成为面向对象范式的根本性范式。<sup>[13](https://memphis-cs.github.io/comp-7085-8085-2012-fall/papers/Beck2011FSE.pdf)</sup>

其含义后来转向分布式系统。在分布式系统中，松耦合架构与紧耦合架构的区别在于进程是通过共享内存（紧）还是仅通过消息传递（松）进行通信。<sup>[5](https://archives.iw3c2.org/www2009/proceedings/pdf/p911.pdf)</sup> 该原则具有尺度不变性：稳定的模块接口应隐藏易变的内部实现，使内部变更不传播到消费者，无论该模块是一个类还是一个网络服务。<sup>[14](https://synchronium.github.io/software-architecture-wiki/concepts/coupling.html)</sup>

## 实现松耦合的机制

实践者的指导汇聚为少量实践：最小化组件之间的依赖，使用定义良好的接口进行交互，避免共享状态和全局数据结构。<sup>[2](https://docs.aws.amazon.com/prescriptive-guidance/latest/database-decomposition/cohesion-coupling.html)</sup> 帕纳斯的信息隐藏提供了底层理据：一个几乎不暴露内部实现的接口，使其他组件除了契约之外无可依赖。<sup>[12](https://cw.fel.cvut.cz/old/_media/courses/a4m33sep/materialy/architecture_and_design/01-article_original_de_parnas.pdf)</sup>

**异步通信。** [事件驱动架构](https://www.edgepedia.org/zh/event-driven-architecture)通过事件代理或事件总线解耦组件，服务发布和订阅事件以实现异步、响应式交互；该模式被认为支持松耦合、高可扩展性和独立部署。<sup>[15](https://link.springer.com/article/10.1007/s00607-026-01701-5)</sup> 同一文献对何为事件驱动持谨慎态度：集中式 BPMN 编排引擎本身并不能使系统成为事件驱动，因为只有当运行时协调主要通过异步、解耦的事件交换进行时，事件驱动行为才会出现。<sup>[15](https://link.springer.com/article/10.1007/s00607-026-01701-5)</sup>

**部分结果与依赖方向。** 克里斯·理查森（Chris Richardson）是 microservices.io 微服务架构参考资料的作者，他建议自包含服务对同步请求返回部分结果，例如 HTTP 202 Accepted，并通过 saga 异步完成操作；他还建议将松耦合的子域设计为具有稳定 API，并将紧耦合的子域打包在同一服务中。<sup>[16](https://microservices.io/post/architecture/2023/03/28/microservice-architecture-essentials-loose-coupling.html)</sup> 依赖方向同样重要。马丁·福勒（Martin Fowler）用一个需要映射服务的领域对象说明了这个问题：让它调用映射器会引入从领域到映射器的依赖，形成循环，因此需要一种不同种类的依赖来打破耦合。<sup>[17](https://www.martinfowler.com/ieeeSoftware/coupling.pdf)</sup>

## 耦合的度量

存在若干定量方法族。在静态分析传统中，传入耦合（Ca）计算依赖于给定组件的外部组件数量（扇入），传出耦合（Ce）计算一个组件所拥有的依赖数量（扇出），不稳定性定义为 \( I = C_{e} / (C_{a} + C_{e}) \)，范围从 0（稳定）到 1（不稳定）。<sup>[14](https://synchronium.github.io/software-architecture-wiki/concepts/coupling.html)</sup> 所检索到的文献均未给出这些值变得有问题时的数值阈值。

**演化耦合。** 共同变更分析从版本控制历史中度量耦合：耦合的支持度值计算两个软件工件一起被更改的频率，并辅以置信度度量。<sup>[13](https://memphis-cs.github.io/comp-7085-8085-2012-fall/papers/Beck2011FSE.pdf)</sup> 应用于微服务时，一种度量认为，如果两个微服务在项目历史中被共同更改超过 5 次，则它们在逻辑上是耦合的；一项对 145 个开源微服务项目的研究发现，逻辑耦合对整体系统有显著影响，并倾向于随时间增加。<sup>[18](https://ar5iv.labs.arxiv.org/html/2306.02036)</sup>

**经验证的度量。** 解耦水平（DL）指标源自期权理论，已在 108 个开源项目和 21 个工业项目上进行测量；它衡量的不是架构有多耦合，而是软件能在多大程度上被解耦为小型且可独立替换的模块，较高的解耦水平预示着更好的架构，其中缺陷更可能被局部化。<sup>[19](https://dl.acm.org/doi/10.1145/2884781.2884825)</sup> 早期工作定义了满足有效性所需的已发表数学性质的耦合和内聚度量，并在三个大型 NASA/GSFC Ada 项目上研究了它们与故障倾向性的关系，从而支持早期生命周期质量评估。<sup>[20](https://psycnet.apa.org/doi/10.1109/32.815329)</sup> 符合布里安德（Briand）、莫拉斯卡（Morasca）和巴西利（Basili）测量理论性质的信息论度量涵盖了模块间耦合、模块内耦合以及模块化系统的内聚。<sup>[21](https://www.sdml.cs.kent.edu/library/Allen99.pdf)</sup>

## 数据说话

实证结果给出了该概念的具体量级。在 WWW 2009 的维度评估中，REST 在 10 个维度上得分为松、0 个为紧，RPC 得分为 3 松 4 紧，WS-*/ESB 得分为 4 松 5 紧，其余则取决于具体设计。<sup>[5](https://archives.iw3c2.org/www2009/proceedings/pdf/p911.pdf)</sup> 在一项涵盖 47 个服务的工业耦合优化工作中，故障传播的平均距离下降了 64%，完成分布式事务所需时间减少了 42%，团队需要跨边界协调的频率下降了 58%。<sup>[22](https://www.sci-open.net/index.php/JTIE/article/view/16624)</sup> DORA 研究项目——其 2024 年报告是该系列第十份，基于来自各种规模组织中超过 39,000 名从业者的回答——将部署频率视为四个关键软件交付指标之一。<sup>[23](https://research.google/pubs/dora-accelerate-state-of-devops-2024-report/)</sup> 而结构复杂性的实验测试发现，耦合和内聚必须联合考虑：它们对维护工作量存在显著的交互效应，但二者单独均无主效应。<sup>[8](https://dl.acm.org/doi/10.1109/TSE.2005.130)</sup>

## 耦合、内聚与相关原则

内聚是互补的模块内属性：它衡量组件内各元素为服务于单一、明确定义的目的而协同工作的程度，模块质量随内聚提高而提高。<sup>[2](https://docs.aws.amazon.com/prescriptive-guidance/latest/database-decomposition/cohesion-coupling.html)</sup><sup> • </sup><sup>[9](https://staff.emu.edu.tr/alexanderchefranov/Documents/CMSE520/CMSE520%20Fall%202024/Dhama1995%20Quantitative%20models%20of%20Cohesion%20and%20Coipling%20in%20Software.pdf)</sup> 二者并非独立的杠杆。根据上述实验研究，在软件设计、实现和维护过程中控制复杂性的努力必须将耦合和内聚放在一起考虑，而非孤立对待。<sup>[8](https://dl.acm.org/doi/10.1109/TSE.2005.130)</sup>

耦合不仅有程度之分，还有种类之别。集成强度对它们进行分类：侵入式耦合破坏封装，功能耦合将实现绑定在一起，模型耦合共享丰富的语义，契约耦合将知识限制在交互真正需要的范围内。<sup>[24](https://software-architecture-guild.com/guide/architecture/boundaries/dimensions-of-coupling/)</sup> 这将耦合与封装直接联系起来：泄露内部实现的接口产生侵入式耦合，而契约级接口则使知识保持最少。

**康威定律。** DORA 将松耦合与组织结构联系起来：更松耦合的系统意味着更松耦合的组织，采用更分布式、更可扩展的开发方式。<sup>[4](https://dora.dev/research/2022/dora-report/2022-dora-accelerate-state-of-devops-report.pdf)</sup> 希望获得解耦架构的团队可以应用逆康威机动，设计团队结构和模式以促进预期的架构状态。<sup>[7](https://dora.dev/capabilities/loosely-coupled-teams/)</sup>

## 分布式系统中的松耦合

在微服务中，耦合分为两个不同的问题。服务间的设计时耦合是两个服务必须一起变更的可能性；同步变更代价高昂，因为它们通常涉及破坏性 API 变更，而设计时耦合会削弱团队自主性。<sup>[16](https://microservices.io/post/architecture/2023/03/28/microservice-architecture-essentials-loose-coupling.html)</sup> 运行时耦合是一个服务的操作可用性受另一个服务可用性影响的程度。<sup>[16](https://microservices.io/post/architecture/2023/03/28/microservice-architecture-essentials-loose-coupling.html)</sup>

通信风格增加了时间维度。同步通信产生时间耦合，因为调用者和被调用者必须在同一时刻都可用；编排式协调集中了控制耦合，而协同式则不会。<sup>[14](https://synchronium.github.io/software-architecture-wiki/concepts/coupling.html)</sup> DORA 对比了单体与微服务两种原型：微服务实现了独立扩展、测试和部署，代价是更复杂的工具和网络延迟，而在紧耦合架构下，小变更可能导致大规模级联故障。<sup>[7](https://dora.dev/capabilities/loosely-coupled-teams/)</sup>

**成本。** 成本是运营性的。在一项关于微服务架构中事件管理的实证定性研究中，开发者报告难以在相互依赖的微服务网络中追踪其计算结果，也难以重放过去的事件以进行调试，发现事件在监控和故障排除方面几乎没有益处。<sup>[25](https://dl.acm.org/doi/10.1145/3776581)</sup> 在基于事件的微服务架构中，保障安全属性是一项新兴挑战，因为开发者难以确保只处理来自安全通道的事件，且只有经过身份验证的生产者才能发布。<sup>[25](https://dl.acm.org/doi/10.1145/3776581)</sup> 基于事件代理的解耦在延迟和资源消耗方面也因事件代理和代理服务器而付出可测量的代价。<sup>[26](https://cris.unibo.it/retrieve/handle/11585/1050253/eb111870-9360-4df0-8576-8ee00d1081bd/Event_Mesh__the_rise_of_Event_Driven_Architectures_in_Cloud_Continuum%20%283%29.pdf)</sup>

## 证据、分歧与近期发展

最强的交付证据来自 DORA。随着服务和产品变得不那么紧耦合，部署频率应提高，检测和从问题中恢复的时间以及变更到达生产环境的时间应缩短。<sup>[7](https://dora.dev/capabilities/loosely-coupled-teams/)</sup> DORA 还提供了一个实用检验：部署前需要与其他服务进行深度集成测试的团队尚未实现松耦合，因为孤立可测试性按定义就是松耦合接口的证据。<sup>[4](https://dora.dev/research/2022/dora-report/2022-dora-accelerate-state-of-devops-report.pdf)</sup> AWS 的指导增加了可靠性理据：松耦合的依赖关系将故障面最小化到组件级别，通过让团队在模块级别实施变更来简化开发周期，并允许根据资源需求在组件级别进行横向扩展。<sup>[6](https://docs.aws.amazon.com/wellarchitected/latest/reliability-pillar/rel_prevent_interaction_failure_loosely_coupled_system.html)</sup>

**事件真的能解耦吗？** 可信来源存在分歧。文献综述的观点认为，事件驱动架构通过事件代理解耦组件，并支持松耦合、高可扩展性和独立部署。<sup>[15](https://link.springer.com/article/10.1007/s00607-026-01701-5)</sup> 事件管理的实证研究在实践中发现了相反的情况：开发者常常出乎意料地需要同步事件以进行正确的事件处理，并协调微服务以允许软件演化，这与基于事件的架构所谓的好处相矛盾。<sup>[25](https://dl.acm.org/doi/10.1145/3776581)</sup>

**服务网格与事件网格。** 近期工作认为，当边车代理以同步和阻塞方式调解交互时，服务网格架构可能在时间和空间上紧耦合微服务，这可能阻碍可扩展性；所提出的事件网格模式提供了一个异步层，通过在每个微服务中部署与边车代理通信的事件代理，在空间和时间上解耦通信。<sup>[26](https://cris.unibo.it/retrieve/handle/11585/1050253/eb111870-9360-4df0-8576-8ee00d1081bd/Event_Mesh__the_rise_of_Event_Driven_Architectures_in_Cloud_Continuum%20%283%29.pdf)</sup> 对 AWS 和 GCP 上服务网格、事件驱动系统、无服务器计算和[多语言持久化](https://www.edgepedia.org/zh/polyglot-persistence)的受控比较，已测量了这些风格的响应时间、吞吐量、资源利用率和运营成本。<sup>[27](https://www.mecs-press.org/ijieeb/ijieeb-v18-n3/v18n3-6.html)</sup>

**耦合是持续的工作。** 微服务耦合研究发现，高度耦合的服务可能需要在部署新功能之前与其他服务同步，从而降低了微服务的好处，而实践者往往凭直觉而非指标来选择服务边界。<sup>[18](https://ar5iv.labs.arxiv.org/html/2306.02036)</sup> 工业优化案例得出结论，减少耦合不是一次性活动，而是需要持续的工程实践。<sup>[22](https://www.sci-open.net/index.php/JTIE/article/view/16624)</sup>

## References

1. [Loose Coupling (IEEE essay)](https://ieeexplore.ieee.org/ielx7/6287639/10005208/10147219.pdf)
2. [Analyzing cohesion and coupling for database decomposition, AWS Prescriptive Guidance](https://docs.aws.amazon.com/prescriptive-guidance/latest/database-decomposition/cohesion-coupling.html)
3. [SC-3(4): Module Coupling And Cohesiveness, NIST SP 800-53 Rev. 4](https://csf.tools/reference/nist-sp-800-53/r4/sc/sc-3/sc-3-4/)
4. [2022 Accelerate State of DevOps Report, DORA](https://dora.dev/research/2022/dora-report/2022-dora-accelerate-state-of-devops-report.pdf)
5. [Why is the Web Loosely Coupled? A Multi-Faceted Metric for Service Design, WWW 2009](https://archives.iw3c2.org/www2009/proceedings/pdf/p911.pdf)
6. [Loosely coupled systems, AWS Well-Architected Framework Reliability Pillar](https://docs.aws.amazon.com/wellarchitected/latest/reliability-pillar/rel_prevent_interaction_failure_loosely_coupled_system.html)
7. [Loosely coupled teams, DORA Capabilities](https://dora.dev/capabilities/loosely-coupled-teams/)
8. [The Structural Complexity of Software: An Experimental Test, IEEE TSE 31(11)](https://dl.acm.org/doi/10.1109/TSE.2005.130)
9. [Quantitative Models of Cohesion and Coupling in Software (Dhama, 1995)](https://staff.emu.edu.tr/alexanderchefranov/Documents/CMSE520/CMSE520%20Fall%202024/Dhama1995%20Quantitative%20models%20of%20Cohesion%20and%20Coipling%20in%20Software.pdf)
10. [Old Measures for New Services, Steve Vinoski, IEEE Internet Computing](https://steve.vinoski.net/pdf/IEEE-Old_Measures_for_New_Services.pdf)
11. [On the criteria to be used in decomposing systems into modules, Classics in software engineering, ACM](https://dl.acm.org/doi/abs/10.5555/1241515.1241527)
12. [On the Criteria To Be Used in Decomposing Systems into Modules, D. L. Parnas, 1972](https://cw.fel.cvut.cz/old/_media/courses/a4m33sep/materialy/architecture_and_design/01-article_original_de_parnas.pdf)
13. [On the Congruence of Modularity and Code Coupling, Beck & Diehl, FSE 2011](https://memphis-cs.github.io/comp-7085-8085-2012-fall/papers/Beck2011FSE.pdf)
14. [Coupling, Software Architecture wiki](https://synchronium.github.io/software-architecture-wiki/concepts/coupling.html)
15. [Consistency challenges in event-driven microservices, Computing (Springer)](https://link.springer.com/article/10.1007/s00607-026-01701-5)
16. [Essential characteristics of the microservice architecture: loosely coupled, Chris Richardson, microservices.io](https://microservices.io/post/architecture/2023/03/28/microservice-architecture-essentials-loose-coupling.html)
17. [Reduce Coupling, Martin Fowler, IEEE Software](https://www.martinfowler.com/ieeeSoftware/coupling.pdf)
18. [On the Empirical Evidence of Microservice Logical Coupling](https://ar5iv.labs.arxiv.org/html/2306.02036)
19. [Decoupling level: a new metric for architectural maintenance complexity, ACM](https://dl.acm.org/doi/10.1145/2884781.2884825)
20. [Defining and validating measures for object-based high-level design, IEEE TSE](https://psycnet.apa.org/doi/10.1109/32.815329)
21. [Measuring Coupling and Cohesion: An Information-Theory Approach, Allen & Khoshgoftaar](https://www.sdml.cs.kent.edu/library/Allen99.pdf)
22. [Microservice Architecture Coupling Optimization and Engineering Implementation Practices, JTIE](https://www.sci-open.net/index.php/JTIE/article/view/16624)
23. [DORA Accelerate State of DevOps 2024 Report, Google Research](https://research.google/pubs/dora-accelerate-state-of-devops-2024-report/)
24. [Dimensions of Coupling, Software Architecture Guild](https://software-architecture-guild.com/guide/architecture/boundaries/dimensions-of-coupling/)
25. [An Empirical Study on Challenges of Event Management in Microservice Architectures, ACM TOSEM](https://dl.acm.org/doi/10.1145/3776581)
26. [Event Mesh: the rise of Event-Driven Architectures in Cloud Continuum, University of Bologna](https://cris.unibo.it/retrieve/handle/11585/1050253/eb111870-9360-4df0-8576-8ee00d1081bd/Event_Mesh__the_rise_of_Event_Driven_Architectures_in_Cloud_Continuum%20%283%29.pdf)
27. [Comparative Performance and Optimization Strategies for Cloud-Native Architectures, IJIEEB](https://www.mecs-press.org/ijieeb/ijieeb-v18-n3/v18n3-6.html)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Software engineering and development process › Software design and architecture › Titles 4 to Mo

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/loose-coupling

English original: https://www.edgepedia.org/loose-coupling
