知识卡片
事件日志支持顺序重放
追加且不可变的事件日志保存事件顺序,使消费者可从指定位置重放并重建状态。使用 Kafka 时还要明确主题分区及分区内有序的边界,不能把跨分区顺序当作保证。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
原书出处
参考来源
- 位置:《Principles of Software Architecture Modernization》第8章《Embracing New Technology》(源文件:`_epub-src/OPS/ch08.xhtml`,归一化正文 [50523:54748))
- 结论依据:原文列出日志追加、有序、不可变,并说明 Kafka 消息按分区 offset 排序。
- 原始内容:A log has the following properties: Append only Totally ordered sequence of records ordered by time Immutable Figure 8.14: What is a log Source: https://engineering.linkedin.com/distributed-systems/log-what-every-software-engineer-should-know-about-real-time-datas-unifying Figure 8.14 illustrates these properties. The order of records in a log is time based. Entries on the left are older than entries on the right. New entries will only be added on write, the tail of the log, and never changed.