知识卡片

普通读书笔记卡 · 2285.k.15

命令表达执行意图

理解等级:高级

命令表示发送方要求特定接收方做事,接收方可以拒绝,但不能像事件一样无声忽略。确认接收与最终完成是不同反馈;订餐收到确认不等于食物已送达。命令与事件是消息载荷的语义,与同步、异步协议无关;Kafka记录也能承载命令。把“需要发通知”命名成事件并不会改变它的意图。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 平衡编排与协同 · 查看原书依据

      In contrast, component A can also send a command to component B. That means that A wants B to do something. There is a clear intent, and B is not able to simply ignore that command. Tip An event does not know who picks it up or why. The component emitting the event should not

    参考来源

    - 位置:《Practical Process Automation》第8章《平衡编排与协同》(来源项目:book-sources;源文件:extracted/Practical Process Automation (Bernd Ruecker)/_epub-src/OEBPS/ch08.xhtml) - 结论依据:原文给出的机制、实例与边界支持本卡的解释。 - 原始内容:In contrast, component A can also send a command to component B. That means that A wants B to do something. There is a clear intent, and B is not able to simply ignore that command. Tip An event does not know who picks it up or why. The component emitting the event should not