知识卡片
环境一致减少隐藏差异
开发、预发布和生产的差异不仅是代码,还包括数据库/系统栈和参与交付的人。较短变化链、接近的依赖环境及作者参与运行责任,有助于避免测试通过却在生产因环境差异失败。目标是控制影响行为的差异,不是把生产数据和权限不加区分地复制到开发环境。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- It’s All About Dependability · 查看原书依据
Any possible differences between development and production should be kept as small as possible. This includes code differences, of course, but it extends well beyond that: Code divergence Development branches should be small and short-lived, and should be tested and deployed into production as quickly as possible. Hours later is good. Minutes later is better.
参考来源
- 位置:《Cloud Native Go》第06章《It’s All About Dependability》(来源项目book-sources;源文件:extracted/Cloud Native Go (Matthew A. Titmus)/_epub-src/OEBPS/ch06.xhtml)
- 结论依据:开发、预发布和生产的差异不仅是代码,还包括数据库/系统栈和参与交付的人。原文相应定义、示例或限制为此结论提供依据;补充纠错与版本边界在正文就近标明。
- 原始内容:Any possible differences between development and production should be kept as small as possible. This includes code differences, of course, but it extends well beyond that: Code divergence Development branches should be small and short-lived, and should be tested and deployed into production as quickly as possible. Hours later is good. Minutes later is better.