← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 3255

流量镜像只验证影子结果

理解等级:高级

流量镜像把真实请求复制给新版本,却仍将旧路径结果返回用户;影子响应可离线比对正确性和性能。因此可验证新实现的运行表现,却无法直接衡量用户体验或业务转化影响。镜像写请求还需避免重复副作用。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      Frequently with traffic mirroring, the results of the duplicated requests are not returned to the calling service or end user. Instead, the responses are evaluated out-of-band for correctness, such as comparing the results generated by a refactored and existing service, or a selection of operational properties are observed as a new service version handles the request, such as response latency or CPU required.

    参考来源

    - 位置:《Mastering API Architecture》第5章《Deploying and Releasing APIs》之《Traffic Mirroring》(源文件:_epub-src/OEBPS/ch05.xhtml) - 结论依据:原文说明复制请求的响应不返还用户,而用于离线正确性或资源指标分析;案例指出暗发布不能衡量业务影响。 - 原始内容:Frequently with traffic mirroring, the results of the duplicated requests are not returned to the calling service or end user. Instead, the responses are evaluated out-of-band for correctness, such as comparing the results generated by a refactored and existing service, or a selection of operational properties are observed as a new service version handles the request, such as response latency or CPU required.