serverless-aws-alias icon indicating copy to clipboard operation
serverless-aws-alias copied to clipboard

Disable throttling

Open cgrimal opened this issue 6 years ago • 3 comments

Hello,

related to #57, I am wondering if it is possible to disable entirely the throttling (for a stage or a method)?

I see the throttlingBurstLimit and throttlingRateLimit options, but no option to disable it.

Thanks, Clément

cgrimal avatar Jan 30 '18 15:01 cgrimal

Hi @cgrimal , if you do not set any of the throttling options, the limits are applied by AWS as mentioned in https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-request-throttling.html

HyperBrain avatar Jan 30 '18 15:01 HyperBrain

Thanks for your swift answer @HyperBrain! So if I understand correctly, you cannot replicate the behaviour of unchecking the Enable throttling checkbox in the API Gateway console but the default behaviour is to apply the account throttling limits (10k requests per second and 5k requests in burst) so it will have the same effects. Am I correct?

cgrimal avatar Jan 30 '18 15:01 cgrimal

I think so. If you do not add the settings, it should be equal to unchecking. Please let me know if you experienced a different behavior. You should see the configuration you've set via the plugin in the stage settings in the AWS console.

If the handling is not correct (or expected) in this case, the proper handling should be added to the plugin for that.

HyperBrain avatar Jan 30 '18 15:01 HyperBrain