← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 1980.z.4.b.3.a

Changelog恢复计算结果

理解等级:中级

Changelog记录状态表的每次变更,是流表对偶中的流。恢复实例可读取已计算结果而非重算全部输入,通常压缩以保留每键最新状态。它必须与处理进度保持一致,恢复完整后才处理新事件;否则缺失旧状态与新写入交错,会产生错误。没有changelog也可从源流重建,但更慢且可能重新输出副作用。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Stateful Streaming · 查看原书依据

      A changelog is a record of all changes made to the data of the state store. It is the stream in the table-stream duality, with the table of state transformed into a stream of individual events. As a permanent copy of the state maintained outside of the microservice instance, the changelog can be used to rebuild state, as shown in Figure 7-2, and serve as a way of checkpointing event

    参考来源

    - 位置:《Building Event-Driven Microservices Leveraging Organizational Data at Scale (Adam Bellemare)》第07章《Stateful Streaming》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Event-Driven Microservices Leveraging Organizational Data at Scale (Adam Bellemare)/_epub-src/OEBPS/ch07.xhtml;规范化段落起句:A changelog is a record of all changes) - 结论依据:原文对该对象的定义、运行说明或对比支持以下归纳:Changelog记录状态表的每次变更,是流表对偶中的流。本卡同时保留其适用条件与失败边界。 - 原始内容:A changelog is a record of all changes made to the data of the state store. It is the stream in the table-stream duality, with the table of state transformed into a stream of individual events. As a permanent copy of the state maintained outside of the microservice instance, the changelog can be used to rebuild state, as shown in Figure 7-2, and serve as a way of checkpointing event