5/30/2023 0 Comments Request was throttled![]() ![]() The time period for API throttling always equals one second. You can schedule a quota window for the time periods of 1 hour, 6 hours, 12 hours, 1 day, 1 week, or 1 month. If you add another condition, for a key, throttling counter will be applied only to requests additionally including that key (logical operator: AND). For example, if you configure throtling for an endpoint wiith two resources, counter will be applied for both (logical operator: OR). Note that depending on the conditions’ combinations, throttling counter may be applied to a specific resource. You can associate a throttling counter with the API key, HTTP method (GET, POST, PUT, HEAD, PATCH, OPTIONS, DELETE), API resource and API endpoint conditions - key collections, API key, HTTP method, esource or endpoint.ĭepending on your configuration, a throttling counter may increase whenever an incoming request meets any of the above conditions, or a combination of these conditions. The quota limit increases whenever API consumers include API keys from that key collection in requests to your registered APIs. ![]() You can only associate quota with a key collection. If the average decreases below the specified requests-per-second limit, API consumers regain the capability to make requests that match the counter's associated conditions. A throttling counter operates based on a moving average of received requests during the last 5 seconds. For each counter, you define a limit of allowed requests per second, and if that limit is reached, the edge server will reject any subsequent requests that match the counter's associated conditions. To throttle your API traffic, you create throttling counters that increment based on the incoming requests to your APIs.Ī throttling counter is an object composed of a set of conditions that, when matched by an incoming client request, cause the counter to increase. To learn more, see the Cloud Security documentation in the Protect section. To deal with this specific use case efficiently, Akamai recommends the Cloud Security products in tandem with API Gateway. Protecting against excessive automated API calls by limiting the incoming requests rate to a value you consider typical for real-user traffic.Preventing system outages as a result of extreme spikes in traffic.Other advantages of API throttling include: API throttling ensures such problems do not occur by rejecting excessive requests before they reach your API server. ![]() For example, your API could respond slowly to their requests or not send a response at all. This ensures that every API consumer can have a high-quality experience when interacting with your API and prevents API consumers from dominating the capacity of your backend API infrastructure.Ī single API consumer sending more than a thousand requests to your API within one second could negatively impact the experience of other API consumers. The API throttling feature available in the API Keys and Traffic Management app lets you define throttling counters to limit incoming API traffic on a per second basis. ![]()
0 Comments
Leave a Reply. |