知识卡片
粗服务事务便利换来较大发布范围
粗粒度领域服务把相关业务操作放在较大边界内,便于本地事务和一致性控制;代价是改动其中一个功能时,要测试并重新部署包含其他功能的整个服务。原书对比 OrderService 与拆开的 OrderPlacement、PaymentService:后者变更影响可更窄,但付款失败又需要跨服务一致性处理。粒度要同时评估事务边界与发布范围。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Service-Based Architecture Style · 查看原书依据
changing the order-placement functionality in an OrderService would require the team to test and redeploy all of the service’s functionality, including payment processing.
参考来源
- 位置:《Fundamentals of Software Architecture》原书第14章《Service-Based Architecture Style》(阅读计划第17项;源文件:`OEBPS/ch14.html`)
- 结论依据:原文直接比较粗粒度事务完整性与服务整体测试、部署的权衡。
- 原始内容:changing the order-placement functionality in an OrderService would require the team to test and redeploy all of the service’s functionality, including payment processing.