返回主题:领域逻辑的组织方式

此卡片不在当前主题的阅读序列中,可返回主题继续阅读。

知识卡片

普通读书笔记卡 · 3356

事件溯源记录变化而非终值

理解等级:初级

事件溯源把状态变化保留为不可变事件序列,再由事件重建或推导当前状态;关键是数据模型,而非必须使用某个消息队列。仅把数据库更新消息推给另一个服务做副本,并不自动构成完整的事件溯源模型。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    原书出处

    参考来源

    - 位置:《Principles of Software Architecture Modernization》第2章《Anti-Patterns: Lack of Isolation》(源文件:`_epub-src/OPS/ch02.xhtml`,归一化正文 [16927:21116)) - 结论依据:原文把事件溯源定义为记录变化事件而非仅保留终值,并明确关键是不变事件日志而不是消息中间件;因此卡片区分它与普通复制。 - 原始内容:Event sourcing (ES) 23 is a way to capture changes in forms of events instead of final values. Perhaps the most classic and old example would be for a financial ledger where you don not store the final values but each transaction movements. Event sourcing in software Event sourcing is not about technology, but it is really about data modeling.