知识卡片
数据拓扑须匹配服务边界
数据库拓扑描述物理数据库如何分布,包括单库、按领域分库和每服务一库。原书认为微服务通常以每服务一库维护限界上下文,服务型架构则较灵活。选拓扑时应同时权衡事务一致性、扩展性、故障隔离和变更控制;“每服务一库”是该风格常见配套,不等于所有微服务系统都必须立刻拆库。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Architectural Intersections · 查看原书依据
Three basic topologies include a monolithic database, distributed domain-based databases, or the distributed database-per-service topology.
参考来源
- 位置:《Fundamentals of Software Architecture》原书第26章《Architectural Intersections》(阅读计划第30项,单元08;源文件:`OEBPS/ch26.html`)
- 结论依据:原书定义三种基本数据库拓扑,解释微服务通常使用每服务一库且服务型架构更灵活;事务与扩展权衡结合本章单元07,末句为适用边界推断。
- 原始内容:Three basic topologies include a monolithic database, distributed domain-based databases, or the distributed database-per-service topology.