← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 3052.a.2

迁移代码适应不同起点

理解等级:高级

通过流水线传播的实时迁移,不一定面对同一起始版本:测试环境可能比生产多应用过几个失败版本。迁移须能自动运行、适应这些不同代码与状态起点,并具有幂等性,重复应用不造成损害。只写一条按唯一预期状态执行的手工命令,无法满足这个交付契约。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 变更既有基础设施 · 查看原书依据

      Three requirements to deliver an infrastructure change as code are that it can be deployed automatically through a pipeline, it can be applied to different starting versions of the infrastructure and state files (if applicable), and it is idempotent, so it can be applied to

    参考来源

    - 位置:《Infrastructure As Code》第20章《变更既有基础设施》(来源项目:book-sources;源文件:extracted/Infrastructure As Code/_epub-src/OEBPS/ch20.html) - 结论依据:原文在该段定义概念并解释相关过程或限制,支撑“通过流水线传播的实时迁移,不一定面对同一起始版本:测试环境可能比生产多应用过几个失败版本”这一核心结论;正文的用途与边界据同小节后续论述整理。 - 原始内容:Three requirements to deliver an infrastructure change as code are that it can be deployed automatically through a pipeline, it can be applied to different starting versions of the infrastructure and state files (if applicable), and it is idempotent, so it can be applied to