知识卡片
同一事件支持多种投影
投影是把事件按顺序转换为某个用途所需状态的逻辑。同一客户事件流既可生成当前状态,也可累计历史姓名与电话号码供搜索,或统计跟进次数供分析。未来可以添加新投影,但只能利用已记录的事件信息;投影不取代事件流的事实来源地位。
相关:[[事件溯源保存变化历史]]。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 建模时间维度 · 查看原书依据
Finally, we are not limited to projecting only a single state representation of the events! Consider the following scenarios. Search You have to implement a search. However, since a lead’s contact information can be updated—first name, last name, and phone number—sales agents may not be aware of the changes applied by other agents and may
参考来源
- 位置:《Learning Domain-Driven Design》第7章《建模时间维度》(来源项目:book-sources;源文件:extracted/Learning Domain-Driven Design/_epub-src/OEBPS/ch07.html)
- 结论依据:原文围绕本卡所述机制给出定义、适用条件及相关取舍,以下摘录为直接依据。
- 原始内容:Finally, we are not limited to projecting only a single state representation of the events! Consider the following scenarios. Search You have to implement a search. However, since a lead’s contact information can be updated—first name, last name, and phone number—sales agents may not be aware of the changes applied by other agents and may