知识卡片
领域事件描述既成事实
领域事件是已经发生的重要业务事实,应以过去式命名并携带理解事实所需的数据,如工单何时、为何已升级。事件是聚合公共接口的一部分,订阅者可据此执行后续逻辑。命令表达希望发生的行动,事件表达已发生的结果;事件可靠发布还需独立机制。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 应对复杂业务逻辑 · 查看原书依据
A domain event is a message describing a significant event that has occurred in the business domain. For example: Ticket assigned Ticket escalated Message received Since domain events describe something that has already happened, their names should be formulated in the past tense. The goal of a domain event is to describe what has happened
参考来源
- 位置:《Learning Domain-Driven Design》第6章《应对复杂业务逻辑》(来源项目:book-sources;源文件:extracted/Learning Domain-Driven Design/_epub-src/OEBPS/ch06.html)
- 结论依据:原文围绕本卡所述机制给出定义、适用条件及相关取舍,以下摘录为直接依据。
- 原始内容:A domain event is a message describing a significant event that has occurred in the business domain. For example: Ticket assigned Ticket escalated Message received Since domain events describe something that has already happened, their names should be formulated in the past tense. The goal of a domain event is to describe what has happened