Microsoft Foundry Agent Service を使用して構築されたカスタマーサポートエージェントがあります。このエージェントは、Azure OpenAI モデルのデプロイメントを呼び出します。 負荷テスト中に、呼び出しが断続的に失敗し、HTTP 429 レート制限超過エラーが返されます。 負荷がかかった状態での通話失敗を減らし、信頼性を向上させるためには、スロットリングを適切に処理する必要があります。このソリューションは、サービスおよびモデルの制限内に収まるものでなければなりません。 あなたはどうすべきでしょうか?
正解:C
To handle HTTP 429 throttling and improve load testing reliability for your Microsoft Foundry Agent Service, implement exponential backoff with jitter on the client side, deploy a load- balancing gateway across multiple Azure OpenAI regions, or upgrade your deployment to Provisioned Throughput Units (PTU). *-> 1. Implement Client-Side Retry LogicConfigure your agent's HTTP client or SDK to handle 429 errors gracefully rather than failing immediately. Exponential Backoff: Increase the wait time between subsequent retry attempts exponentially . Jitter: Add a small amount of random delay (jitter) to the backoff time to prevent a "thundering herd" effect where all throttled requests retry simultaneously. Header Inspection: Programmatically read the Retry-After or x-ratelimit-reset values from the HTTP 429 response headers to pause execution for the exact duration requested by Azure. 2. Set Up Multi-Region Load Balancing 3. Switch to Provisioned Throughput (PTU) 4. Optimize Token Consumption Reference: https://learn.microsoft.com/en-us/answers/questions/1518859/help-with-resolving-ptu-m-service-429-error