知识卡片

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

宽松契约转移验证责任

理解等级:高级

只有名称值对的宽松格式有利于减少结构耦合,却削弱契约确定性与自动检查,往往需要应用逻辑和适应度函数补足。REST或GraphQL也不天然保证兼容;原书将GraphQL用于只读聚合是本例用法,并非协议能力上限。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Evolutionary Architecture Topologies · 查看原书依据

      Using such loose contracts allows for extremely decoupled systems, often one of the goals in architectures such as microservices. However, the looseness of the contract comes with trade-offs, including lack of contract certainty, verification, and increased application logic. The formerly contractual concerns are often replaced with fitness functions.

    参考来源

    - 位置:《Building Evolutionary Architectures Automated Software Governance, 2nd Edition》第05章《Evolutionary Architecture Topologies》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Evolutionary Architectures Automated Software Governance, 2nd Edition/_epub-src/OEBPS/ch05.html;段落定位:the looseness of the contract comes with trade-offs) - 结论依据:原文对“宽松契约转移验证责任”的定义或案例,支撑“只有名称值对的宽松格式有利于减少结构耦合,却削弱契约确定性与自动检查,往往需要应用逻辑和适应度函数补足”的归纳。据其上下文,REST或GraphQL也不天然保证兼容;原书将GraphQL用于只读聚合是本例用法,并非协议能力上限。 - 原始内容:Using such loose contracts allows for extremely decoupled systems, often one of the goals in architectures such as microservices. However, the looseness of the contract comes with trade-offs, including lack of contract certainty, verification, and increased application logic. The formerly contractual concerns are often replaced with fitness functions.