知识卡片
时间耦合藏在执行顺序中
组件即使没有明显共享代码,也可能受调用时序绑定。原书订单处理中必须先执行下单,再执行发货,属于时间耦合;事务边界也可能产生类似依赖。静态依赖工具不一定能发现它,需从设计文档、流程或错误现象核对。不要把“无代码引用”直接判作组件独立。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Component-Based Thinking · 查看原书依据
Temporal coupling describes nonstatic dependencies, usually those based on timing or transactions
参考来源
- 位置:《Fundamentals of Software Architecture》第10章《Component-Based Thinking》(源文件:`OEBPS/ch08.html`)
- 结论依据:原文定义时间耦合,并用下单先于发货的场景与工具检测局限说明。
- 原始内容:Temporal coupling describes nonstatic dependencies, usually those based on timing or transactions