← 返回起始笔记位置

知识卡片

普通读书笔记卡 · 2275.as.6.f.3.c.1.e.2.d.1.c.1

命令记录不等于事实日志

理解等级:高级

命令源记录处理前的请求以便审计与恢复,事件记录已经发生的事实。重放命令可能重新调用外部系统或因当前状态得到不同结果,必须区分重建内部状态与重新执行业务副作用,不能随意重试历史命令。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Event and Notification Management · 查看原书依据

      You can also use event stores as command stores within your operational architecture. This enables command sourcing, where you first persist any command before it’s processed. Doing this enables you to replay the whole state of your system. It allows you to audit messages and see a trail of what has happened, and set controls on commands before they get processed.

    参考来源

    - 位置:《Data Management at Scale》第06章《Event and Notification Management》(来源项目 a19c7933-4eda-4176-aebd-30fe7e1ad292,源文件:extracted/Data Management at Scale/_epub-src/OEBPS/ch06.html) - 结论依据:原文对command sourcing的解释、约束及上下文支持本卡;内容为中文归纳,不把架构建议当作所有组织的必然规律。 - 原始内容:You can also use event stores as command stores within your operational architecture. This enables command sourcing, where you first persist any command before it’s processed. Doing this enables you to replay the whole state of your system. It allows you to audit messages and see a trail of what has happened, and set controls on commands before they get processed.