知识卡片
共享单库放大变更波及
许多独立部署的微服务若直连同一数据库表,改列名或删表就可能要求多服务同步修改、测试和发布,服务边界无法封装数据结构。原书以60个服务共享一个库为示意,说明协调成本随共享者扩散;“60”是教学情境,不是发生过的事故或阈值。让数据由所属服务通过契约提供,可把表结构变更主要留在该服务边界内。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Microservices Architecture · 查看原书依据
changing the structure of that database (such as by changing a column name or dropping a table) would require corresponding changes to all 60 services using that data.
参考来源
- 位置:《Fundamentals of Software Architecture》原书第18章《Microservices Architecture》(阅读计划第21项,单元13;源文件:`OEBPS/ch18.html`)
- 结论依据:原书图18-13的60服务共享库是设想案例;图18-14与正文说明数据库归属和通过契约访问对变更控制的作用。
- 原始内容:changing the structure of that database (such as by changing a column name or dropping a table) would require corresponding changes to all 60 services using that data.