知识卡片

普通读书笔记卡 · 1903.c.1.e.5.c

代码库与部署包装

理解等级:中级

基础设施代码库把定义组织成可跨栈复用的组件。若工具擅长模块版本管理却缺少可分发栈制品,可让模块实现完整栈,再用薄项目导入并部署它;这个项目是部署包装栈。库负责复用,包装负责实例化,不应因文件外观相似就混淆职责。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 基础设施组件 · 查看原书依据

      A stack module implements a complete, deployable stack (perhaps even importing other libraries) as a library, using the infrastructure tool’s library support. To deploy an instance of the stack, an infrastructure code project is created that imports the stack module. A stack project that exists only to import and deploy a stack module is a

    参考来源

    - 位置:《Infrastructure As Code》第6章《基础设施组件》(来源项目 book-sources,源文件:extracted/Infrastructure As Code/_epub-src/OEBPS/ch06.html) - 结论依据:原文对该概念的定义、应用条件与作用机制直接支持上述解释。 - 原始内容:A stack module implements a complete, deployable stack (perhaps even importing other libraries) as a library, using the infrastructure tool’s library support. To deploy an instance of the stack, an infrastructure code project is created that imports the stack module. A stack project that exists only to import and deploy a stack module is a