← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 3224.e

契约存放要支持双方取得

理解等级:中级

契约可放在生产者仓库、集中仓库或 broker;无论选哪种,都要让生产者与消费者获取当前版本,并让新提案有可审查的入口。集中存放提高发现性,却可能失去生产者对承诺范围的控制;broker 可记录谁验证、谁依赖,便于发布前查影响面。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      Ultimately the contracts need to be obtainable by the producer and the consumer. The storage point also needs to allow for the submission of new contracts. The producer should have control over which contracts are accepted in the project and can ensure that undesired changes aren’t made or additional contracts are added.

    参考来源

    - 位置:《Mastering API Architecture》第2章《Testing APIs》之《How a Contract Is Implemented》(源文件:_epub-src/OEBPS/ch02.xhtml) - 结论依据:原文逐一比较随生产者代码、集中仓库和 Pact Broker 存储,强调双方可获取、可提交且生产者能控制接受的契约。 - 原始内容:Ultimately the contracts need to be obtainable by the producer and the consumer. The storage point also needs to allow for the submission of new contracts. The producer should have control over which contracts are accepted in the project and can ensure that undesired changes aren’t made or additional contracts are added.