知识卡片

普通读书笔记卡 · 4378.f

通信协调与原子性

理解等级:中级

同步与异步描述调用者是否等待响应;编排与协同描述工作流协调责任是否集中在一个服务;原子性描述所有部分是否始终保持一致状态。这些是不同设计维度:异步并不天然等于协同,也不自动决定一致性。契约则是任意两个软件部分交接的接口,范围包括本地方法和远程调用。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 没有最佳实践时如何决策 · 查看原书依据

      Orchestrated coordination A workflow is orchestrated if it includes a service whose primary responsibility is to coordinate the workflow. Choreographed coordination A workflow is choreographed when it lacks an orchestrator; rather, the services in the workflow share the coordination responsibilities of the workflow. Atomicty A workflow is atomic if all parts of the workflow maintain a consistent state at all times; the opposite is represented by the spectrum of eventual consistency, covered in Chapter 6.

    参考来源

    - 位置:《Software Architecture: The Hard Parts》第1章《没有最佳实践时如何决策》(来源项目: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/ch01.xhtml) - 结论依据:原文的定义、比较或案例支持“同步与异步描述调用者是否等待响应;编排与协同描述工作流协调责任是否集中在一个服务;原子性描述所有部分是否始终保持一致状态”;正文据此解释其用途与适用边界。 - 原始内容:Orchestrated coordination A workflow is orchestrated if it includes a service whose primary responsibility is to coordinate the workflow. Choreographed coordination A workflow is choreographed when it lacks an orchestrator; rather, the services in the workflow share the coordination responsibilities of the workflow. Atomicty A workflow is atomic if all parts of the workflow maintain a consistent state at all times; the opposite is represented by the spectrum of eventual consistency, covered in Chapter 6.