← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 1980.q.1.b

按聚合分片事件存储

理解等级:中级

事件溯源操作以单个聚合为范围,可按聚合ID分片,把同一聚合的所有事件保留在同一分片。这样读取完整事件序列和版本校验仍在局部完成。数据量大本身不要求跨分片重建一个聚合,合理的一致性边界有助扩展。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 建模时间维度 · 查看原书依据

      The event-sourced model is easy to scale. Since all aggregate-related operations are done in the context of a single aggregate, the event store can be sharded by aggregate IDs: all events belonging to an instance of an aggregate should reside in a single shard (see Figure 7-3). Figure 7-3. Sharding the event store Deleting Data

    参考来源

    - 位置:《Learning Domain-Driven Design》第7章《建模时间维度》(来源项目:book-sources;源文件:extracted/Learning Domain-Driven Design/_epub-src/OEBPS/ch07.html) - 结论依据:原文围绕本卡所述机制给出定义、适用条件及相关取舍,以下摘录为直接依据。 - 原始内容:The event-sourced model is easy to scale. Since all aggregate-related operations are done in the context of a single aggregate, the event store can be sharded by aggregate IDs: all events belonging to an instance of an aggregate should reside in a single shard (see Figure 7-3). Figure 7-3. Sharding the event store Deleting Data