← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 1765.g.1

检查点追赶可重建投影

理解等级:中级

追赶订阅按上次检查点查询新增或更新记录,更新读模型后保存新的检查点;把检查点重置可重建投影。检查点必须保证后续不会出现小于已处理值的新变化,否则记录将被永久漏掉。单纯递增计数若不满足可见性顺序,仍不能保证投影完整。书中称这种拉取方式为同步投影。

相关:[[CQRS分开写入与读取]]。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 架构模式 · 查看原书依据

      Synchronous projections fetch changes to the OLTP data through the catch-up subscription model: The projection engine queries the OLTP database for added or updated records after the last processed checkpoint. The projection engine uses the updated data to regenerate/update the system’s read models. The projection engine stores the checkpoint of the last processed record. This

    参考来源

    - 位置:《Learning Domain-Driven Design》第8章《架构模式》(来源项目:book-sources;源文件:extracted/Learning Domain-Driven Design/_epub-src/OEBPS/ch08.html) - 结论依据:原文围绕本卡所述机制给出定义、适用条件及相关取舍,以下摘录为直接依据。 - 原始内容:Synchronous projections fetch changes to the OLTP data through the catch-up subscription model: The projection engine queries the OLTP database for added or updated records after the last processed checkpoint. The projection engine uses the updated data to regenerate/update the system’s read models. The projection engine stores the checkpoint of the last processed record. This