知识卡片
功能开关分离部署与启用
新代码已部署但真实使用出现问题时,功能开关可在运行期关闭该特性,而无需整服务重新发布。它让功能风险控制与代码分发解耦,降低一次紧急部署的成本。须明确关闭后的合法行为和依赖;开关不是撤销所有已产生数据或外部副作用的通用回滚。
相关:[[部署回退要覆盖状态变化]]。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 可部署性 · 查看原书依据
The kill switch automatically disables a feature in your system at runtime, without forcing you to initiate a new deployment. This provides the ability to control deployed features without the cost and risk of actually redeploying services.
参考来源
- 位置:《Software Architecture in Practice, 4th Edition》第5章《可部署性》(来源项目:book-sources;源文件:extracted/Software Architecture in Practice, 4th Edition/_epub-src/ch05.html)
- 结论依据:原文的定义、机制或比较支持“新代码已部署但真实使用出现问题时,功能开关可在运行期关闭该特性,而无需整服务重新发布”;正文保留其条件与取舍。
- 原始内容:The kill switch automatically disables a feature in your system at runtime, without forcing you to initiate a new deployment. This provides the ability to control deployed features without the cost and risk of actually redeploying services.