← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 2816.c.1

消费者契约保证最低需求

理解等级:高级

消费者驱动契约反转提供方单向发布格式的模式:消费者写出自己需要的信息和校验,把测试交给提供方纳入持续集成。提供方演进内部表示时,只要仍满足所有消费者需求,就不必暴露整个内部模型。这让宽松传输与可验证的集成并存,可表达比简单类型更多的条件。收益依赖工程纪律:测试必须及时运行且失败必须处理,否则所谓契约保证会失效。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 契约 · 查看原书依据

      The concept of a consumer-driven contract inverses that relationship into a pull model; here, the consumer puts together a contract for the items they need from the provider, and passes the contract to the provider, who includes it in their build and keeps the contract test green at all times. The contract encapsulates the information the consumer needs from the provider.

    参考来源

    - 位置:《Software Architecture The Hard Parts Modern Trade-Off Analyses for Distributed Architectures (Neal Ford, Mark Richards, Pramod Sadalage etc.)》第13章《Chapter 13. Contracts》(来源项目:book-sources;源文件:extracted/Software Architecture The Hard Parts Modern Trade-Off Analyses for Distributed Architectures (Neal Ford, Mark Richards, Pramod Sadalage etc.)/_epub-src/OEBPS/ch13.xhtml) - 结论依据:原文的定义、示例或失败路径支持以下归纳:消费者驱动契约反转提供方单向发布格式的模式:消费者写出自己需要的信息和校验,把测试交给提供方纳入持续集成。 其他条件结合本章同小节说明;不将模式目标当成已有运行保证。 - 原始内容:The concept of a consumer-driven contract inverses that relationship into a pull model; here, the consumer puts together a contract for the items they need from the provider, and passes the contract to the provider, who includes it in their build and keeps the contract test green at all times. The contract encapsulates the information the consumer needs from the provider.