AWS - Lambda

A Brief History Of Cloud

EC2 Launches 2006

Data Centre -> IAAS -> PAAS -> Containers -> Serverless


What Is Lambda

AWS Lambda is a compute service where you can upload your code and create a Lambda function. AWS Lambda takes care of provisioning and managing the servers that you use to run the code. You don't have to worry about operating systems, patching, scaling, etc. You can use Lambda in the following ways:

  • As an event-driven compute service where AWS Lambda runs your code in response to events. These events could be changes to data in an Amazon S3 bucket or an Amazon dynamoDB tables.
  • As a compute service to run your code in response to HTTP requests using Amazon API Gateway or API calls made using AWS SDKs.



How is Lambda Priced

Number of requests

First 1 million requests are free. $0.20 per 1 million requests thereafter.

Duration

Duration is calculated from the time your code begins executing until it returns or otherwise terminates, rounded up to the nearest 100 ms. The prices depends on the amount of memory you allocate to your function. You are charged $0.00001667 for every GB-second used.


Why is Lambda Cool

  • NO SERVERS
  • Continuous Scaling
  • Super super super cheap

Lambda - Exam Tips

  • Lambda scales out (not up) automatically
  • Lambda functions are independent, 1 event = 1 function
  • Lambda is serverless
  • Know what services are serverless
  • Lambda functions can trigger other lambda functions, 1 event can = x functions if functions trigger other functions.
  • Architectures can get extremely complicated, AWS X-ray allows you to debug what is happening.
  • Lambda can do things globally, you can use it to back up S3 buckets to other S3 buckets etc
  • Know your triggers
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值