此卡片不在当前主题的阅读序列中,可返回主题继续阅读。
知识卡片
流表对偶与物化
按顺序把实体事件upsert到键值表,可使每个键保留最近状态;反过来,记录表的每次变更就能形成事件流。消费者通过重放流建立自己的状态,不必读取生产者私库。成立的前提是事件含必要状态或足够的变更信息、顺序与删除语义完整,不能把任何键控活动流直接当作当前实体表。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Event-Driven Microservice Fundamentals · 查看原书依据
You can materialize a stateful table by applying entity events, in order, from an entity event stream. Each entity event is upserted into the key/value table, such that the most recently read event for a given key is represented. Conversely, you can convert a table into a stream of entity events by publishing each update to the event stream. This is known as the table-stream duality, and it is fundamental
参考来源
- 位置:《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;规范化段落起句:You can materialize a stateful table)
- 结论依据:原文对该对象的定义、运行说明或对比支持以下归纳:按顺序把实体事件upsert到键值表,可使每个键保留最近状态;反过来,记录表的每次变更就能形成事件流。本卡同时保留其适用条件与失败边界。
- 原始内容:You can materialize a stateful table by applying entity events, in order, from an entity event stream. Each entity event is upserted into the key/value table, such that the most recently read event for a given key is represented. Conversely, you can convert a table into a stream of entity events by publishing each update to the event stream. This is known as the table-stream duality, and it is fundamental