知识卡片
共享库或领域库改变服务耦合
基于服务的架构可以让多个领域服务共享一个数据库,也可以把数据库分成领域范围。共享库便于 SQL 查询与连接,但表结构变动会牵动多个服务;独立库加强数据边界,却可能迫使服务为读取彼此的数据而远程通信。数据库拓扑应和服务通信模式一起评估。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Service-Based Architecture Style · 查看原书依据
If using multiple separate databases, the architect must make sure that no other domain service needs the data in each database, which might incur interservice communication between domain services.
参考来源
- 位置:《Fundamentals of Software Architecture》原书第14章《Service-Based Architecture Style》(阅读计划第17项;源文件:`OEBPS/ch14.html`)
- 结论依据:原文同时给出单库与领域库,并指出拆库可能增加服务间通信。
- 原始内容:If using multiple separate databases, the architect must make sure that no other domain service needs the data in each database, which might incur interservice communication between domain services.