知识卡片

普通读书笔记卡 · 3469.b

独立变化检验服务耦合

理解等级:高级

服务松耦合要求彼此不依赖对方的实现细节,并能独立更新。若修改一个服务总要同步修改另一个,便是边界或接口设计的警讯。[[稳定接口支撑替换实现]]是达到这种独立变化能力的一种方式;评估时应观察真实变更链,而非只看部署数量。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    原书出处

    参考来源

    - 位置:《Microservice APIs》第 3 章《Designing microservices》(源文件:_epub-src/OEBPS/Text/03.htm) - 结论依据:原文把不依赖实现细节和更新互不牵连列为松耦合的具体要求,反向指出联动修改意味着紧耦合。 - 原始内容:Loosely coupled services don’t rely on another’s implementation details. ... Each service can be updated without impacting other services. If changes to a service require updates to other services, we have tight coupling between those services, and therefore they need to be redesigned.