知识卡片
管道错误需要预先设计退出路径
数据一旦进入多步管道,中途致命错误可能让流程难以退出和恢复。设计时应先列出失败发生在哪一步、后续是否继续、如何终止及重试会不会重复处理,再决定错误出口。后半句是依据原书“预先确定致命错误条件”的实施推断,不能当作原书给出的固定恢复算法。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Pipeline Architecture Style · 查看原书依据
If an error occurs within a pipeline, it is often difficult to determine how to properly exit the pipeline and recover once the pipeline is started.
参考来源
- 位置:《Fundamentals of Software Architecture》原书第12章《Pipeline Architecture Style》(阅读计划第15项;源文件:`OEBPS/ch12.html`)
- 结论依据:原文指出启动后出错的退出与恢复困难,要求先识别可能的致命错误条件。
- 原始内容:If an error occurs within a pipeline, it is often difficult to determine how to properly exit the pipeline and recover once the pipeline is started.