知识卡片
重试预算限制总放大
单请求重试次数只控制一个请求;重试预算约束整个服务在时间窗口内可付出的额外请求量。结合退避与熔断,可以防止故障时每层独立重试造成乘法放大;预算耗尽应返回明确失败或安全回退。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Building Resilient Systems · 查看原书依据
Retry budgets to limit resource consumption: This is a rate-limiting mechanism that controls how many retry attempts a system can make within a specific time window. Unlike simple retry limits that cap attempts per request, retry budgets consider the system's overall health and capacity, preventing retry storms that could overwhelm services during recovery periods.
参考来源
- 位置:《Building Distributed Systems Designing scalable architectures with microservices, event-driven patterns, and robust deployment…》第08章《Building Resilient Systems》(来源项目book-sources;源文件:extracted/Building Distributed Systems Designing scalable architectures with microservices, event-driven patterns, and robust deployment…/_epub-src/OPS/ch08.xhtml)
- 结论依据:原文的机制或对比支持以下核心判断:单请求重试次数只控制一个请求;重试预算约束整个服务在时间窗口内可付出的额外请求量。 本卡将相邻说明中的适用限制保留为解释。
- 原始内容:Retry budgets to limit resource consumption: This is a rate-limiting mechanism that controls how many retry attempts a system can make within a specific time window. Unlike simple retry limits that cap attempts per request, retry budgets consider the system's overall health and capacity, preventing retry storms that could overwhelm services during recovery periods.