知识卡片
性能链路需匹配生产条件
性能型端到端测试若要预测线上表现,环境容量和配置应尽量接近生产,并以业务要求的 SLO、预期负载和突增延迟为检验目标。环境差异较大时,指标只能说明该测试环境的表现,不能直接外推到生产。安全机制也应开启,保持用户旅程及指标的代表性。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- · 查看原书依据
Performance testing, Q4 in the testing quadrant, should be deployed to a like-for-like environment of your production environment. If the two differ, you will not get results indicative of how your services are working. This does mean that you are going to need to deploy your services to this representative hardware, and depending on your resources and environment, that can be tricky.
参考来源
- 位置:《Mastering API Architecture》第2章《Testing APIs》之《Types of End-to-End Tests》(源文件:_epub-src/OEBPS/ch02.xhtml)
- 结论依据:原文要求性能测试使用与生产相似的环境,关注 SLO 与负载,并指出关闭 TLS 或认证会失去代表性。
- 原始内容:Performance testing, Q4 in the testing quadrant, should be deployed to a like-for-like environment of your production environment. If the two differ, you will not get results indicative of how your services are working. This does mean that you are going to need to deploy your services to this representative hardware, and depending on your resources and environment, that can be tricky.