DevOps

What is API Gateway Throttling


Spring Datafication 2022. 9. 28. 17:52

API Gateway throttling is a mechanism to control the number of requests that can be made to an API. This is useful to control the load on the backend service and to prevent abuse of the API.
Throttling can be applied at the API level, resource level, or method level. Throttling can be applied to both the requests that are made to the API and the responses that are returned from the API.

API Gateway Throttling Types

There are two types of throttling in API Gateway: Request Throttling and Response Throttling.

Request Throttling

Request throttling is the process of limiting the number of requests that can be made to an API. This is useful to control the load on the backend service and to prevent abuse of the API.

Response Throttling

Response throttling is the process of limiting the number of responses that can be returned from an API. This is useful to control the load on the backend service and to prevent abuse of the API.

API Gateway Throttling Scenarios

There are two types of throttling scenarios in API Gateway: Global Throttling and Advanced Throttling.

Global Throttling

Global throttling is the process of limiting the number of requests that can be made to an API. This is useful to control the load on the backend service and to prevent abuse of the API.

Advanced Throttling

Advanced throttling is the process of limiting the number of requests that can be made to an API based on a specific condition. This is useful to control the load on the backend service and to prevent abuse of the API.

API Gateway Throttling Policies

There are two types of throttling policies in API Gateway: Request Count Throttling and Bandwidth Throttling.

Request Count Throttling

Request count throttling is the process of limiting the number of requests that can be made to an API. This is useful to control the load on the backend service and to prevent abuse of the API.

Bandwidth Throttling

Bandwidth throttling is the process of limiting the number of responses that can be returned from an API. This is useful to control the load on the backend service and to prevent abuse of the API.

How does API Gateway Throttling work?

  1. The API Gateway receives a request from the client.
  2. The API Gateway checks whether the request is throttled or not.
  3. If the request is throttled, the API Gateway returns a 429 response to the client.
  4. If the request is not throttled, the API Gateway forwards the request to the backend service.
  5. The backend service returns a response to the API Gateway.
  6. The API Gateway checks whether the response is throttled or not.
  7. If the response is throttled, the API Gateway returns a 429 response to the client.
  8. If the response is not throttled, the API Gateway returns the response to the client.
  9. The client receives the response from the API Gateway.

How do you use API Gateway Throttling in Spring Boot?

... to be continued

Reference

amazon

apim docs
tibco

반응형

'DevOps' 카테고리의 다른 글

How to Enable root User Login in EC2  (0) 2023.03.02
onlyoffice for alfresco 7.2.X | 7.3.X  (0) 2023.01.09
Dockerfile  (0) 2022.05.24
Docker Process & Volumes  (0) 2022.05.23
Docker  (0) 2022.05.23