Request throttling for the Amazon ECS API

0

Is there an API call you can make that gives you the state capacity (used/available) of the bucket (capacity and refill rate). CloudWatch monitors failures (RequestLimitExceeded) but only once you exceeded the limit, so you can be at the 99% mark and see zero failures and then pass it without noticing.

Kobster
已提問 1 年前檢視次數 469 次
1 個回答
3

there isn't a direct API call that provides the current state capacity (used/available) or the current throttle status for the Amazon ECS API. The Amazon ECS API has a default rate limit, and exceeding it results in a "RequestLimitExceeded" error, which you can monitor through Amazon CloudWatch.

if you needed, you can estimate and manage your API usage by following

  • Cache API responses
  • if your application requires higher rate limits, you can request a limit increase by contacting AWS Support.
  • Implement an exponential backoff algorithm with jitter in your applications that make API calls
profile picture
專家
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南