知识卡片
配置事务范围难遮住失败路径
原书描述旧式应用服务器可用配置声明实体在不同工作流中的事务范围,由服务器再与数据库交互实现事务。若开发者无法从代码确定运行时事务行为,就可能为不同范围做出几乎相同的实体版本;总线也不能穷尽跨组件失败情形,异常时仍可能留下需要人工处理的不一致。配置隐藏了事务决策,却没有消除事务边界与故障模式。这是原书对该风格抽象泄漏的总结,不能推断所有配置式事务都必然失败。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Orchestration-Driven Service-Oriented Architecture · 查看原书依据
Too many leaks in the abstraction prevent it from achieving reliability.
参考来源
- 位置:《Fundamentals of Software Architecture》原书第17章《Orchestration-Driven Service-Oriented Architecture》(阅读计划第20项,单元06;源文件:`OEBPS/ch17.html`)
- 结论依据:原书说明EntityBeans与工作流可声明事务范围,以及运行时不可见行为和复杂失败路径导致重复实体、不一致两类问题;未给出具体资金交易事故。
- 原始内容:Too many leaks in the abstraction prevent it from achieving reliability.