← 返回刚才阅读的位置

知识卡片

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

领域知识决定依赖方向

理解等级:高级

事件将领域依赖放到接收者:它必须理解发布方的事件语义。命令将依赖放到发送者:它必须理解接收方的能力。通用授权服务若订阅页面、附件等所有领域事件,每增加一种业务就要升级,容易成为分布式单体。让页面服务显式调用稳定的授权API,可把变化留在拥有领域知识的一侧。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

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

      When a service listens to an event, the receiver is “domain-coupled” to that event. This means it knows on which channel the event will be received, what the event means, and probably the schema of the data attached to it. The direction of dependency is from the receiver to the sender. As you saw earlier

    参考来源

    - 位置:《Practical Process Automation》第8章《平衡编排与协同》(来源项目:book-sources;源文件:extracted/Practical Process Automation (Bernd Ruecker)/_epub-src/OEBPS/ch08.xhtml) - 结论依据:原文给出的机制、实例与边界支持本卡的解释。 - 原始内容:When a service listens to an event, the receiver is “domain-coupled” to that event. This means it knows on which channel the event will be received, what the event means, and probably the schema of the data attached to it. The direction of dependency is from the receiver to the sender. As you saw earlier