知识卡片
精简运行环境缩小维护面
运行环境只安装工作负载所需的包,可减少补丁、迁移与依赖冲突的维护面。每增加一层无关依赖,就多暴露一个可能变更的契约;容器化能帮助控制部署环境,但仍需管理底层补丁。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
原书出处
参考来源
- 位置:《Principles of Software Architecture Modernization》第2章《Anti-Patterns: Lack of Isolation》(源文件:`_epub-src/OPS/ch02.xhtml`,归一化正文 [63009:67165))
- 结论依据:原文以操作系统包依赖和 OpenSSL 修补为例,说明精简包及容器化可使系统更新的影响更可控。
- 原始内容:The leaner your OS - the fewer packages it has - the fewer items to be maintained, patched and migrated. For instance, not installing python unnecessarily if your software does not need it, or skipping compilers like gcc or clang. After all, many OS libraries are not lean libraries, suffering from bloated dependencies where one small install can lead to conflicts, managing multiple conflicting packages.