知识卡片

普通读书笔记卡 · 3405

事件日志支持顺序重放

理解等级:中级

追加且不可变的事件日志保存事件顺序,使消费者可从指定位置重放并重建状态。使用 Kafka 时还要明确主题分区及分区内有序的边界,不能把跨分区顺序当作保证。

这张卡片看不懂?

已有反馈 · 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.