知识卡片
事件溯源保存变化历史
事件溯源把每次状态变化记录为领域事件,并以完整事件序列作为事实来源。当前状态只是按顺序应用事件得到的投影,因而既能恢复当前状态,也能重建历史状态。仅保存客户线索的当前状态会丢掉接触、跟进和转化的过程,难以支持流程优化。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 建模时间维度 · 查看原书依据
The event sourcing pattern introduces the dimension of time into the data model. Instead of the schema reflecting the aggregates’ current state, an event sourcing–based system persists events documenting every change in an aggregate’s lifecycle. Consider the CONVERTED customer on line 12 in Table 7-1. The following listing demonstrates how the person’s data would be
参考来源
- 位置:《Learning Domain-Driven Design》第7章《建模时间维度》(来源项目:book-sources;源文件:extracted/Learning Domain-Driven Design/_epub-src/OEBPS/ch07.html)
- 结论依据:原文围绕本卡所述机制给出定义、适用条件及相关取舍,以下摘录为直接依据。
- 原始内容:The event sourcing pattern introduces the dimension of time into the data model. Instead of the schema reflecting the aggregates’ current state, an event sourcing–based system persists events documenting every change in an aggregate’s lifecycle. Consider the CONVERTED customer on line 12 in Table 7-1. The following listing demonstrates how the person’s data would be