11_Serverless Flashcards
1
Q
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.
A
2
Q
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 table.
- As a compute service to run your code in response to HTTP requests using Amazon API Gateway or API calls made using AWS SDKs.
A
3
Q
Lambda
- Lambda scales out (not up) automatically
- Lambda functions are independent: 1 event = 1 function
- Lambda is serverless
- Lambda functions can trigger other Lambda functions, 1 event can = x functions if functions trigger other functions
- Architecture 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.
A