serverless-api-gateway-throttling:无服务器框架的插件,可为API网关端点配置限制

时间:2021-04-25 04:13:24
【文件属性】:
文件名称:serverless-api-gateway-throttling:无服务器框架的插件,可为API网关端点配置限制
文件大小:20KB
文件格式:ZIP
更新时间:2021-04-25 04:13:24
api-gateway serverless-framework serverless-plugin throttling JavaScript 无服务器API网关限制 介绍 无服务器框架的插件,可为API网关端点配置限制。 为什么? 将API部署到API Gateway时,默认情况下会启用限制。 但是,默认方法限制-10,000个请求/秒,同时突发5000个并发请求-与您的帐户级别限制匹配。 结果,整个区域中的所有API都共享一个速率限制,该速率限制可以用一种方法耗尽。 阅读更多有关它的。 该插件使配置这些限制变得容易。 很高兴知道 如果使用HTTP方法ANY为端点定义了自定义限制设置,则该设置将应用于所有方法: GET , DELETE , HEAD , OPTIONS , PATCH , POST和PUT 。 例子 plugins : - serverless-api-gateway-throttling custom : # Configures throttling settings for the API G
【文件预览】:
serverless-api-gateway-throttling-develop
----package.json(918B)
----test()
--------model()
--------creating-settings.js(11KB)
--------updating-stage-throttling-settings.js(14KB)
--------steps()
--------finding-the-rest-api-id.js(1KB)
----package-lock.json(16KB)
----src()
--------updateStageThrottling.js(5KB)
--------restApiId.js(1KB)
--------apiGatewayThrottlingPlugin.js(2KB)
--------ApiGatewayThrottlingSettings.js(3KB)
----.npmignore(70B)
----.gitignore(73B)
----.circleci()
--------config.yml(1KB)
----README.md(3KB)
----.vscode()
--------launch.json(301B)

网友评论