- Newest
- Most votes
- Most comments
Hi Accuvend,
You can use AWS API Gateway to implement the scaling and queueing
Leveraging API Gateway Throttling: API Gateway provides built-in throttling capabilities that can help you manage the incoming request load and prevent your backend system from being overloaded. You can configure throttling limits at the API, stage, or method level:
Throttling Rate: Specify the rate (requests per second) at which tokens are added to the token bucket.
Throttling Burst: Specify the capacity of the token bucket, which determines the maximum number of concurrent requests that can be handled.
You can configure these throttling settings through the API Gateway console, CLI, or SDK.
Implementing Queueing with API Gateway and Lambda: To implement a queueing mechanism, you can use API Gateway in combination with AWS Lambda:
Set up an API Gateway endpoint that accepts the incoming requests.
Configure API Gateway to forward the requests to a Lambda function.
In the Lambda function, you can implement the queueing logic to batch the requests and process them in a controlled manner, avoiding overloading your backend system.
This approach allows you to decouple the request handling from the backend processing, providing the queueing and batching functionality you require.
https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-request-throttling.html
Relevant content
- asked 3 years ago
- asked 4 years ago
- AWS OFFICIALUpdated 2 years ago