知识卡片
数据隔离允许服务自行选库
服务不共享数据库实现细节后,每个团队可按自己的预算、存储结构和运行需求选择数据库,也能在不要求其他服务改动存储访问代码的前提下换库。这是数据隔离带来的技术自治收益;它依赖其他服务只使用稳定契约,而不直接查询该库。换库仍要处理本服务的数据迁移、兼容和运维成本,不能把“对外隐藏”误解为迁移零风险。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Microservices Architecture · 查看原书依据
Another advantage of a highly decoupled system is that any team can change course and choose a more suitable database (or other dependency) without affecting other teams, which aren’t allowed to couple to implementation details.
参考来源
- 位置:《Fundamentals of Software Architecture》原书第18章《Microservices Architecture》(阅读计划第21项,单元06;源文件:`OEBPS/ch18.html`)
- 结论依据:原书指出各团队可按预算、存储与运行特征选库或更换依赖,其他团队不得耦合其实现细节;末句为实践边界。
- 原始内容:Another advantage of a highly decoupled system is that any team can change course and choose a more suitable database (or other dependency) without affecting other teams, which aren’t allowed to couple to implementation details.