知识卡片
三种共享不能混同
共享库是在多个项目间复用实现;共享栈代码是同一项目部署多个独立实例;共享运行实例则让多个工作负载使用同一组真实资源。前两者可减少维护工作,第三者还带来运行期依赖和共同升级约束。需要节约代码,不意味着必须共享数据库或网络的运行实例。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 基础设施组件 · 查看原书依据
We can share an infrastructure code library across multiple stack projects, and we can share a stack project across multiple stack instances. We can also share a stack instance across multiple workloads. Figure 6-7 shows another subset of the infrastructure from the example FoodSpin infrastructure design. Figure 6-7. A stack instance shared by multiple workloads
参考来源
- 位置:《Infrastructure As Code》第6章《基础设施组件》(来源项目 book-sources,源文件:extracted/Infrastructure As Code/_epub-src/OEBPS/ch06.html)
- 结论依据:原文对该概念的定义、应用条件与作用机制直接支持上述解释。
- 原始内容:We can share an infrastructure code library across multiple stack projects, and we can share a stack project across multiple stack instances. We can also share a stack instance across multiple workloads. Figure 6-7 shows another subset of the infrastructure from the example FoodSpin infrastructure design. Figure 6-7. A stack instance shared by multiple workloads