知识卡片
多模型适应不同查询
同一个领域数据模型不一定同时适合事务、分析和搜索。多语言持久化按用途选择不同存储,例如事务数据库、分析列存与搜索索引;CQRS提供把同一事实可靠地表示为多种持久化模型的组织方式。它不限于事件溯源,也能用于其他业务实现模式。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 架构模式 · 查看原书依据
An alternative to finding a perfect database is the polyglot persistence model: using multiple databases to implement different data-related requirements. For example, a single system might use a document store as its operational database, a column store for analytics/reporting, and a search engine for implementing robust search capabilities. Finally, the CQRS pattern is closely related
参考来源
- 位置:《Learning Domain-Driven Design》第8章《架构模式》(来源项目:book-sources;源文件:extracted/Learning Domain-Driven Design/_epub-src/OEBPS/ch08.html)
- 结论依据:原文围绕本卡所述机制给出定义、适用条件及相关取舍,以下摘录为直接依据。
- 原始内容:An alternative to finding a perfect database is the polyglot persistence model: using multiple databases to implement different data-related requirements. For example, a single system might use a document store as its operational database, a column store for analytics/reporting, and a search engine for implementing robust search capabilities. Finally, the CQRS pattern is closely related