知识卡片

普通读书笔记卡 · 1841.h.1.a.1.b.2

分层规则保护隔离

理解等级:中级

分层设计依赖访问方向来隔离变化。通过架构测试定义Controller、Service和Persistence等层及可访问来源,可以防止便捷调用逐步打破结构。此规则只适用于已选定的分层方案,不说明所有系统都必须禁止跨层访问;例外需有明确理由和验证。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Automating Architectural Governance · 查看原书依据

      The architect has built a layered architecture to isolate changes between layers. In such an architecture, dependencies should exist only between adjacent layers; the more layers couple to a particular layer, the more rippling side effects occur because of change.

    参考来源

    - 位置:《Building Evolutionary Architectures Automated Software Governance, 2nd Edition》第04章《Automating Architectural Governance》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Evolutionary Architectures Automated Software Governance, 2nd Edition/_epub-src/OEBPS/ch04.html;段落定位:In such an architecture, dependencies should exist only) - 结论依据:原文对“分层规则保护隔离”的定义或案例,支撑“分层设计依赖访问方向来隔离变化”的归纳。据其上下文,通过架构测试定义Controller、Service和Persistence等层及可访问来源,可以防止便捷调用逐步打破结构。 - 原始内容:The architect has built a layered architecture to isolate changes between layers. In such an architecture, dependencies should exist only between adjacent layers; the more layers couple to a particular layer, the more rippling side effects occur because of change.