知识卡片

普通读书笔记卡 · 1334.b.6.a

门面模块缩小接口

理解等级:中级

门面模块包装一种基础设施资源,只暴露少量必要参数,把镜像、安全和网络等规范固定在内部。它能简化调用并统一实现,适合常见简单用途。限制灵活性是这种抽象的代价;若少见场景需要不同底层选项,不能假定门面适用于所有调用者。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 设计基础设施代码库 · 查看原书依据

      A facade module simplifies and standardizes a common use case for an infrastructure resource. The stack code that uses a facade module should be simpler to write and easier to read. Improvements to the quality of the module code are rapidly available to all the stacks that use it. Applicability Facade modules work best for

    参考来源

    - 位置:《Infrastructure As Code》第10章《设计基础设施代码库》(来源项目:book-sources;源文件:extracted/Infrastructure As Code/_epub-src/OEBPS/ch10.html) - 结论依据:原文说明门面模块包装一种基础设施资源,只暴露少量必要参数,把镜像、安全和网络等规范固定在内部;本卡据此解释其用途及适用边界。 - 原始内容:A facade module simplifies and standardizes a common use case for an infrastructure resource. The stack code that uses a facade module should be simpler to write and easier to read. Improvements to the quality of the module code are rapidly available to all the stacks that use it. Applicability Facade modules work best for