知识卡片

普通读书笔记卡 · 3234.b

网关契约隔离后端变化

理解等级:高级

网关可作为客户端与后端之间的门面或适配器,让客户端依赖稳定的外部契约。只要契约保持兼容,后端位置、架构或技术实现可以演进,而客户端改动较少。隔离效果取决于契约治理,不能仅凭增加一层网关就获得低耦合。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      Clients integrate with the API exposed at the gateway, which, providing the agreed upon contract is maintained, allows components at the backend to change location, architecture, and implementation (language, framework, etc.) with minimal impact.

    参考来源

    - 位置:《Mastering API Architecture》第3章《API Gateways: Ingress Traffic Management》之《Reduce Coupling: Adapter/Facade Between Frontends and Backends》(源文件:_epub-src/OEBPS/ch03.xhtml) - 结论依据:原文把网关作为单一入口、门面或适配器,并明确以维持约定契约作为后端变更影响最小化的条件。 - 原始内容:Clients integrate with the API exposed at the gateway, which, providing the agreed upon contract is maintained, allows components at the backend to change location, architecture, and implementation (language, framework, etc.) with minimal impact.