AWS Lambda Flashcards
What is the purpose of Lambda?
Runs functions on demand without needing a server
Why Lambda is important?
Because it allows you to only concern about the code you write and AWS will take care of the rest
What kinds of language Lambda supports?
Python Java Go C# Ruby NodeJS
Quote 2 main benefits of Adhoc Tasks handled by Lambda
Maintenance jobs
Database Backups
How does lambda costs work?
Pay per invocation, duration, memory
How to get logs from lambda?
Lambda has built in metrics with AWS Cloudwatch
How to setup a lambda function?
Go to AWS console
Upload some code
Receive an ARN (Amazon Resource Name)
Invoke the function by using the ARN
What is ARN (Amazon Resource Name)
Its an unique indentifier for a particular lambda app
When a user triggers a lambda function, what happens under the hood?
Under the hood there’s a load balancer provided by aws that handles the traffic through different EC2 instances
The EC2 Instances are stored in the Lambda Service Reserve Pool
When an invocation occurs it has a couple of machines to back your Load Balancer
after that the EC2 used comes back to the Lambda Service Reserve Pool which is shared among other costumers
What is a Lambda Service Reserve Pool?
Is a fleet of EC2 resources that AWS leaves available for your Load balancers when a user tries to invoke your lambda function
What’s API Gateway + Lambda used for ?
REST APIs
What’s S3 + Lambda used for ?
Data Processing
What’s SQS + Lambda used for ?
Message Buffering & Processing
What’s SNS + Lambda used for ?
Message Processing
What’s Step Functions + Lambda used for ?
Workflow orchestration