知识卡片

普通读书笔记卡 · 1841.h.1.a.1.a.3.f.1.b.3

防腐层保留自身语义

理解等级:中级

防腐层用自己的需求语义包住外部库接口,减少外部抽象渗入业务。这样替换库时改动更局部。无需预先为所有依赖建多层代理,可以在发现不稳定边界时借助工具提取接口;关键是保护真正有变化风险的语义连接点。

进一步联系:[[供应商不应成为架构核心]]。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Building Evolvable Architectures · 查看原书依据

      Because the architect put an anticorruption layer in place with an interface, replacing one piece of functionality became a mechanical exercise. Building an anticorruption layer encourages the architect to think about the semantics of what they need from the library, not the syntax of the particular API. But this is not an excuse to abstract all the things! Some development communities love preemptive layers of

    参考来源

    - 位置:《Building Evolutionary Architectures Automated Software Governance, 2nd Edition》第07章《Building Evolvable Architectures》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Evolutionary Architectures Automated Software Governance, 2nd Edition/_epub-src/OEBPS/ch07.html;段落定位:Building an anticorruption layer encourages the architect) - 结论依据:原文对“防腐层保留自身语义”的定义或案例,支撑“防腐层用自己的需求语义包住外部库接口,减少外部抽象渗入业务”的归纳。据其上下文,这样替换库时改动更局部。 - 原始内容:Because the architect put an anticorruption layer in place with an interface, replacing one piece of functionality became a mechanical exercise. Building an anticorruption layer encourages the architect to think about the semantics of what they need from the library, not the syntax of the particular API. But this is not an excuse to abstract all the things! Some development communities love preemptive layers of