知识卡片
封闭层隔离跨层变化
封闭层要求上层请求逐层通过,不能越过中间层。只要层间契约不变,一层内部修改通常不会波及其他层;这是隔离变化的主要收益。代价是简单请求也可能经过只转发的层,是否继续保持封闭要看该层是否承担真实职责。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Layered Architecture Style · 查看原书依据
If a layer is closed, then as a request moves from the top layer down to the bottom layer, the request cannot skip any layers.
参考来源
- 位置:《Fundamentals of Software Architecture》第13章《Layered Architecture Style》(源文件:`OEBPS/ch10.html`)
- 结论依据:原文定义封闭层与层间契约不变时的隔离条件。
- 原始内容:If a layer is closed , then as a request moves from the top layer down to the bottom layer, the request cannot skip any layers.