apex / apex/up

Lambda throttling (reserved concurrency)

オープン
#709 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
Feature Request
主要言語
Go
スター
8.8k
フォーク
383
PR マージ指標
30日以内にマージされた PR はありません

説明

## Prerequisites

* [x] I am running the latest version. (`up upgrade`)
* [x] I searched to see if the issue already exists.
* [ ] I inspected the verbose debug output with the `-v, --verbose` flag.
* [x] Are you an Up Pro subscriber?

## Description
Add `lamda.reserved_concurrency` to `up.json`.

[AWS announced reserved concurrency in November 2017](https://aws.amazon.com/about-aws/whats-new/2017/11/set-concurrency-limits-on-individual-aws-lambda-functions/). This "reservation" allows you to limit the number of concurrent executions of a lambda function. This is helpful for small projects which are using underpowered RDS databases with limited connections.

I took a brief glance into the GO AWS SDK. Reserved currency is not defined as a value in [CreateFunctionInput](https://docs.aws.amazon.com/sdk-for-go/api/service/lambda/#CreateFunctionInput) and is instead a separate call to [PutFunctionConcurrency](https://docs.aws.amazon.com/sdk-for-go/api/service/lambda/#Lambda.PutFunctionConcurrency).

According to the documentation it just returns a `429` error when throttling requests from API Gateway.

## Steps to Reproduce
N/A

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。