知识卡片
墓碑与日志压缩
实体删除可用同键、值为null的墓碑通知消费者移除本地记录。日志压缩保留每个键最新值,减少磁盘与恢复工作,代价是删除旧版本历史。墓碑最终清理意味着新消费者不再需要看到早已不存在的实体,但落后消费者仍须有机会读到删除;不能把物理压缩当成在任何进度下都自动安全。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Event-Driven Microservice Fundamentals · 查看原书依据
The deletion of a keyed event is handled by producing a tombstone. A tombstone is a keyed event with its value set to null. This is a convention that indicates to the consumer that the event with that key should be removed from the materialized data store, as the upstream producer has declared that it is now deleted.
参考来源
- 位置:《Building Event-Driven Microservices Leveraging Organizational Data at Scale (Adam Bellemare)》第02章《Event-Driven Microservice Fundamentals》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Event-Driven Microservices Leveraging Organizational Data at Scale (Adam Bellemare)/_epub-src/OEBPS/ch02.xhtml;规范化段落起句:The deletion of a keyed event)
- 结论依据:原文对该对象的定义、运行说明或对比支持以下归纳:实体删除可用同键、值为null的墓碑通知消费者移除本地记录。本卡同时保留其适用条件与失败边界。
- 原始内容:The deletion of a keyed event is handled by producing a tombstone. A tombstone is a keyed event with its value set to null. This is a convention that indicates to the consumer that the event with that key should be removed from the materialized data store, as the upstream producer has declared that it is now deleted.