Circuit Breaker

Circuit Breaker

📖 定义

Circuit Breaker is a fault tolerance mechanism that automatically "opens" the request chain when downstream services fail, quickly returning error responses to prevent fault propagation. It automatically "closes" to resume normal calls after service recovery.

🔗 在 Higress 中的应用

Higress has built-in circuit breaking capabilities, supporting automatic triggering based on error rates, timeout rates, and other metrics, and can configure Fallback strategies. AI scenarios support model-level Failover.

💡 示例

  • 1 Circuit breaker triggers when error rate exceeds 50%
  • 2 Directly returns cached default response during circuit breaking
  • 3 Automatically switches to backup model when primary model is unavailable

🔄 相关术语

常见问题

Circuit Breaker 是什么?
Circuit Breaker is a fault tolerance mechanism that automatically "opens" the request chain when downstream services fail, quickly returning error responses to prevent fault propagation. It automatically "closes" to resume normal calls after service recovery.
Higress 如何支持 Circuit Breaker?
Higress has built-in circuit breaking capabilities, supporting automatic triggering based on error rates, timeout rates, and other metrics, and can configure Fallback strategies. AI scenarios support model-level Failover.

深入了解 Higress

探索更多 Higress 的功能和最佳实践