I'm trying to develop a data pipeline using AWS lambda and I needed to know if it auto-scales immediately or does it require a warm-up time?
CodePudding user response:
Lambda has this concept of Provisioned concurrency
. From the docs:
Provisioned concurrency initializes a requested number of execution environments so that they are prepared to respond immediately to your function's invocations. Note that configuring provisioned concurrency incurs charges to your AWS account.
You can set a value for how many execution environments be prepared for parallel invocations. This will guarantee that your lambda wont require a warm-up time as long as you stay inside that value and you wont have more parallel executions.
Otherwise, it wont be guaranteed that your function will be warmed-up. If you have nothing set for provisioned concurrency, you most likely will have cold-starts.