知识卡片

普通读书笔记卡 · 517.l.1.a.1

依赖随产物打包

理解等级:中级

将元素及库、系统环境和辅助容器等依赖一同打包,能让版本从开发到生产保持一致。容器、Pod或虚机是不同实现方式,不应仅保存应用代码而临时拉取任意新依赖。打包减少环境漂移,但不能代替服务间接口与数据兼容性设计。

相关:[[环境同构减少虚假差异]]。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 可部署性 · 查看原书依据

      Package dependencies. This tactic packages an element together with its dependencies so that they get deployed together and so that the versions of the dependencies are consistent as the element moves from development into production.

    参考来源

    - 位置:《Software Architecture in Practice, 4th Edition》第5章《可部署性》(来源项目:book-sources;源文件:extracted/Software Architecture in Practice, 4th Edition/_epub-src/ch05.html) - 结论依据:原文的定义、机制或比较支持“将元素及库、系统环境和辅助容器等依赖一同打包,能让版本从开发到生产保持一致”;正文保留其条件与取舍。 - 原始内容:Package dependencies. This tactic packages an element together with its dependencies so that they get deployed together and so that the versions of the dependencies are consistent as the element moves from development into production.