← 返回刚才阅读的位置

知识卡片

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

异步投影需要处理乱序

理解等级:中级

异步投影让命令模型把已提交变化发布到总线,投影器订阅消息更新读库,便于扩展但面对重复、乱序和重建困难。书中建议始终保留可追赶重建的投影路径,再按需要加异步通知。异步速度优势不能替代对读模型一致性和恢复能力的设计。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

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

      In the asynchronous projection scenario, the command execution model publishes all committed changes to a message bus. The system’s projection engines can subscribe to the published messages and use them to update the read models, as shown in Figure 8-16. Figure 8-16. Asynchronous projection of read models Challenges Despite the apparent scaling and performance advantages

    参考来源

    - 位置:《Learning Domain-Driven Design》第8章《架构模式》(来源项目:book-sources;源文件:extracted/Learning Domain-Driven Design/_epub-src/OEBPS/ch08.html) - 结论依据:原文围绕本卡所述机制给出定义、适用条件及相关取舍,以下摘录为直接依据。 - 原始内容:In the asynchronous projection scenario, the command execution model publishes all committed changes to a message bus. The system’s projection engines can subscribe to the published messages and use them to update the read models, as shown in Figure 8-16. Figure 8-16. Asynchronous projection of read models Challenges Despite the apparent scaling and performance advantages