← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 3256

蓝绿切换需要双环境成本

理解等级:高级

蓝绿发布在旧环境旁准备完整新环境,验证后一次切换入口,异常时可快速切回。它适合需要协同发布的耦合服务,但同时运行两套环境增加资源成本;数据写入和持久状态的回退仍需单独设计,不能仅靠切路由解决。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      The green environment is checked prior to switching to live traffic, and at go live the traffic is flipped over from blue to green. The blue environment is now “off,” but if a problem is spotted it is a quick rollback. The next change would go from green to blue, oscillating from first release onward.

    参考来源

    - 位置:《Mastering API Architecture》第5章《Deploying and Releasing APIs》之《Blue-Green》(源文件:_epub-src/OEBPS/ch05.xhtml) - 结论依据:原文描述蓝绿双环境与切换回退,指出适合耦合服务,同时提醒持久服务回退及双倍资源成本。 - 原始内容:The green environment is checked prior to switching to live traffic, and at go live the traffic is flipped over from blue to green. The blue environment is now “off,” but if a problem is spotted it is a quick rollback. The next change would go from green to blue, oscillating from first release onward.