← 返回刚才阅读的位置

知识卡片

结构图卡 · 5407.f.1.a

重试熔断控制失败传播

理解等级:高级

重试适用于暂态故障,并应限定次数。服务持续不响应时,熔断器中止无尽尝试,让后续调用快速失败并启动恢复流程,防止调用者也被等待拖垮。超时或重试阈值过长增加延迟,过短则误触发;熔断策略必须匹配场景,不能据快速失败就推断整体业务成功。

结构图:

flowchart TD
 A[调用超时或出错] --> B[有限重试]
 B --> C{达到失败阈值}
 C -->|是| D[熔断后续调用快速返回]
 D --> E[触发恢复与复位策略]
 C -->|否| F[继续允许调用]

相关:[[异常处理负责掩蔽或修复]]。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 可用性 · 查看原书依据

      A circuit breaker keeps the invoker from trying countless times, waiting for a response that never comes. In this way, it breaks the endless retry cycle when it deems that the system is dealing with a fault. That’s the signal for the system to begin handling the fault.

    参考来源

    - 位置:《Software Architecture in Practice, 4th Edition》第4章《可用性》(来源项目:book-sources;源文件:extracted/Software Architecture in Practice, 4th Edition/_epub-src/ch04.html) - 结论依据:原文的定义、机制或比较支持“重试适用于暂态故障,并应限定次数”;正文保留其条件与取舍。 - 原始内容:A circuit breaker keeps the invoker from trying countless times, waiting for a response that never comes. In this way, it breaks the endless retry cycle when it deems that the system is dealing with a fault. That’s the signal for the system to begin handling the fault.