知识卡片
全量实体共享包扩大变更范围
若所有服务引用同一个包含全部数据表实体的共享库,改一张表就可能要更新该库并重新部署所有服务,即便许多服务根本不访问这张表。原书将此列为反模式;共享的是代码包,不是数据库本身。判断影响范围应按服务实际引用的实体和查询,而不是把“同库”直接等同“全员重部署”。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Service-Based Architecture Style · 查看原书依据
Creating a single shared library of all of the entity objects is the least effective way to implement a service-based architecture.
参考来源
- 位置:《Fundamentals of Software Architecture》原书第14章《Service-Based Architecture Style》(阅读计划第17项;源文件:`OEBPS/ch14.html`)
- 结论依据:原文说明单个全量 entity shared library 令表变更传播到全部服务。
- 原始内容:Creating a single shared library of all of the entity objects is the least effective way to implement a service-based architecture.