添加节奏到 HttpApi
作者: thomaschaaf创建于 2020年12月8日更新于 2026年9月9日
标签enhancementcat/aws-event-http-api
使用案例描述 允许为 HttpApi 设置突发和速率限制。 https://docs.AWS.amazon.com/serverless-application-model/latest/developerguide/sam-resource-httpapi.html https://docs.AWS.amazon.com/AWSCloudFormation/latest/UserGuide/AWS-properties-apigatewayv2-stage-routesettings.html # 建议的解决方案 我会扩展默认路由设置,该设置是针对详细指标引入的。 (参见 https://GitHub.com/serverless/serverless/pull/8510) 为 Providers.httpApi.throttle.burstLimit 和 Providers.httpApi.throttle.rateLimit 添加参数,分别设置为 100 和 100
内容来源: serverless/serverless