知识卡片
二进制耦合锁定升级节奏
二进制耦合是不同模块因共享运行依赖或类路径而被迫采用同一依赖版本。即使业务代码没有互相调用,一个团队升级库也可能要求其他模块同步升级;原书的 Hibernate 版本冲突即此类情形。评估技术更新时,应检查共享依赖图及部署单元,不能只看源码调用关系。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
原书出处
参考来源
- 位置:《Principles of Software Architecture Modernization》第1章《What’s Wrong with Monoliths?》(源文件:`_epub-src/OPS/ch01.xhtml`,归一化正文 [29196:33388))
- 结论依据:原文定义 Binary Coupling 为组件通过二进制依赖耦合,并用同一部署单元中 Hibernate 4 与 5 不能在相同类路径下并存的情境说明升级被绑在一起。
- 原始内容:But, even simple library updates can lead to an entanglement that is hard to unravel. This is known as Binary Coupling, where components in your system are effectively coupled with binary 10 dependencies. Let’s illustrate this with a simple example. Take the sample monolith application depicted in Figure 1.9 . Your reports module uses Jasper Reports, and you use services that provide data via Hibernate 4, now past EOL.