知识卡片
双向依赖提示管道边界失当
过滤器本应通过单向管道传递数据。如果处理步骤必须反复互相询问或回传,可能是过滤器职责划分太粗,也可能这条业务本身不适合管道风格。先重新界定步骤;若流程本质上非确定、需要来回协商,原书更倾向其他风格,而非叠加大量测试器硬凑。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Pipeline Architecture Style · 查看原书依据
If bidirectional communication turns out to be necessary, this is a good indication that the pipeline architecture might not be the right style to use
参考来源
- 位置:《Fundamentals of Software Architecture》原书第12章《Pipeline Architecture Style》(阅读计划第15项;源文件:`OEBPS/ch12.html`)
- 结论依据:原文把双向通信列为风险,并对非确定工作流提出不适用边界。
- 原始内容:If bidirectional communication turns out to be necessary, this is a good indication that the pipeline architecture might not be the right style to use