← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 1845.c.2

用契约承载舞蹈进度

理解等级:高级

复杂舞蹈可把流程状态、事务进展和错误信息附在业务契约中。每个领域服务更新自己的部分再传递,下游据此判断整体结果;需要恢复原子目标时还可能向先前服务重发状态。这把中央协调换成更大的共享上下文,可支持高吞吐,但服务间耦合与带宽成本增加,不能因此消除语义协作,也不自动提供集中状态查询。

[[印记耦合扩大变更半径]]描述其常见代价,这里是付出该代价以获得流程上下文。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 契约 · 查看原书依据

      In this example, an architect designs the contract to include workflow information: status of the workflow, transactional state, and so on. As each domain service accepts the contract, it updates its portion of the contract and state for the workflow, then passes it along. At the end of the workflow, the receiver can query the contract to determine success or failure, along with status and information such as error messages.

    参考来源

    - 位置:《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) - 结论依据:原文的定义、示例或失败路径支持以下归纳:复杂舞蹈可把流程状态、事务进展和错误信息附在业务契约中。 其他条件结合本章同小节说明;不将模式目标当成已有运行保证。 - 原始内容:In this example, an architect designs the contract to include workflow information: status of the workflow, transactional state, and so on. As each domain service accepts the contract, it updates its portion of the contract and state for the workflow, then passes it along. At the end of the workflow, the receiver can query the contract to determine success or failure, along with status and information such as error messages.