知识卡片
追加日志通过顺序重放恢复
事务日志记录会改变状态的事件,以递增序号标识顺序,包含事件类型、键和必要值。恢复时按原顺序重放写入或删除,重建内存状态;删除也作为事件追加。日志会增长,仍须考虑压缩、快照和损坏处理;没有可靠保存的事件无法靠重放找回。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Building a Cloud Native Service · 查看原书依据
We will assume that our transaction log will be read only when our service is restarted or otherwise needs to recover its state, and that it will be read from top to bottom, sequentially replaying each event. It follows that our transaction log will consist of an ordered list of mutating events. For speed and
参考来源
- 位置:《Cloud Native Go》第05章《Building a Cloud Native Service》(来源项目book-sources;源文件:extracted/Cloud Native Go (Matthew A. Titmus)/_epub-src/OEBPS/ch05.xhtml)
- 结论依据:事务日志记录会改变状态的事件,以递增序号标识顺序,包含事件类型、键和必要值。原文相应定义、示例或限制为此结论提供依据;补充纠错与版本边界在正文就近标明。
- 原始内容:We will assume that our transaction log will be read only when our service is restarted or otherwise needs to recover its state, and that it will be read from top to bottom, sequentially replaying each event. It follows that our transaction log will consist of an ordered list of mutating events. For speed and