当前位置: 动力学知识库 > 问答 > 编程问答 >

amazon web services - How do AWS Lambda instances scale?

问题描述:

I understand that AWS Lambda is supposed to abstract the developer from the infrastructure. However I don't quite understand how scaling would work.

Does it automatically start new containers during high traffic?

网友答案:

AWS Lambda functions can be triggered by many different event sources.

AWS Lambda runs each Lambda function runs as a standalone process in its own environment. There is a default limit of 100 concurrent Lambda functions.

There is no need to think of Lambda "scaling". Rather, whenever an event source (or your own application) runs a Lambda function, the environment is created, the function is run, and the environment is torn down. When there is nothing that is invoking a Lambda function, it is not running. When 100 invocations happen, then 100 Lambda functions run.

It "scales" automatically by running in parallel on AWS infrastructure. You only pay while a function is running, per 100ms. It is the job of AWS to ensure that their back-end infrastructure scales to support the number of Lambda functions being run by all customers in aggregate.

分享给朋友:
您可能感兴趣的文章:
随机阅读: