知识卡片

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

消费者契约约束提供者

理解等级:中级

消费者把自己实际依赖的数据与行为写成测试交给提供者,提供者持续运行这些测试。只要契约保持通过,内部实现就能独立演进;契约表达的是消费者需要而非提供者全部实现。长期损坏的构建会使这张安全网失效,因此团队必须维持及时反馈。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Engineering Incremental Change · 查看原书依据

      In Figure 3-11, the provider team is supplying information (typically data in a lightweight format like JSON) to each of the consumers, C1 and C2. In consumer-driven contracts, the consumers of information put together a suite of tests that encapsulate what they need from the provider and hand off those tests to the provider, who promises to keep the tests passing at all times. Because

    参考来源

    - 位置:《Building Evolutionary Architectures Automated Software Governance, 2nd Edition》第03章《Engineering Incremental Change》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Evolutionary Architectures Automated Software Governance, 2nd Edition/_epub-src/OEBPS/ch03.html;段落定位:In consumer-driven contracts, the consumers) - 结论依据:原文对“消费者契约约束提供者”的定义或案例,支撑“消费者把自己实际依赖的数据与行为写成测试交给提供者,提供者持续运行这些测试”的归纳。据其上下文,只要契约保持通过,内部实现就能独立演进;契约表达的是消费者需要而非提供者全部实现。 - 原始内容:In Figure 3-11, the provider team is supplying information (typically data in a lightweight format like JSON) to each of the consumers, C1 and C2. In consumer-driven contracts, the consumers of information put together a suite of tests that encapsulate what they need from the provider and hand off those tests to the provider, who promises to keep the tests passing at all times. Because