Skip to content

0.2.36

Compare
Choose a tag to compare
@mnapoli mnapoli released this 15 Nov 08:59
· 3358 commits to master since this release
1843e13

#72, #91 Set maximum concurrency to 20 instances by default.

The goal for this is to avoid scenarios where a lambda could be DOS by a malicious 3rd party and create a huge AWS bill in a short amount of time.

For example let's say the lambda executes in 100ms. Its execution could be trigger at maximum 10000 times per second (1000 lambdas in parallel). That means a bill of $1613.09 for a whole day of this (not counting API Gateway which is even more expensive!).

This is now set to 20 by default in serverless.yml when doing bref init (that would mean up to $30 per day maximum): https://github.com/mnapoli/bref/blob/master/template/serverless.yml#L21

Existing projects are not affected, this will only impact new projects.

The value can be changed in serverless.yml in your project (and the limit can be removed altogether).