AWS Lambda

Brief introduction

Lambda is AWS provides a free service server architecture, users only need to focus on writing code without concern for deployment, usually need to worry about external event sources, can be used in conjunction with the API Gateway, SNS, S3, DynamoDB, and so on.

Nature

Simple and crude to say, a Lambda is a Docker service or service Firecracker, Firecracker is a similar service Docker's open source AWS, AWS plans to implement all Lambda changed Firecracker. Therefore, when first called Lambda usually slower, because the service needs to be a cold start, but the next call will be much faster.

stand by

  1. Default support six kinds of programming languages ​​(.Net, Python, Node.js, Java, Go, Ruby);
  2. Support for custom runtime (warehouse mthenw / awesome-layers are listed some open-source runtime);
  3. Library supports shared between Lambda (Docker similar concept of Layer), convenient sharing common code between the respective the Lambda;
  4. Support for version control;
  5. Support release red and blue, is about to send the request to a different version of Lambda functions to scale.

limit

  1. Unreserved account concurrent 1000 (note: not a single function, but a single account AWS), needs to improve mention Case;
  2. Single function memory footprint 128M ~ 3008M;
  3. Single function maximum run time is 15 minutes;
  4. Single function can contain a maximum function layer 5 (i.e., shared libraries);
  5. Single function deployment package compressed state shall not exceed 50 MB, extracting the state not exceeding 250 MB;
  6. The total size of a single region (Region) Lambda function shall not exceed 75 GB.

cost

  1. Billing: usage-basis having, particularly as a function of the number of requests , the duration and amount of memory .
  2. Free Package: one million requests per month, and 400000GB- seconds.
  3. After free: 1 million requests per 0.20 USD, 0.00001667 USD per GB- seconds.

reference

  1. AWS Lambda - AWS (official Developer's Guide AWS Lambda's)
  2. AWS lambda 定价 - claim

Guess you like

Origin www.cnblogs.com/lshare/p/11334707.html