AWS Lambda
1 min readApr 4, 2023
- Introduction
- AWS Lambda is a Serverless offering by AWS.
- Serverless means you don’t need to think about the servers.
- You don’t need to worry about installing/upgrading OS, Softwares, Platforms.
- You just need to upload code and then you can invoke using other applications or other AWS services.
- You will only charge for what you use, you don’t need to rent-out servers, pay fixed monthly cost.
- You will only pay what you use, it means your code compute time.
- Like Uber/Ola, you are not paying for the whole car, you only pay for the trip time.
- Well known use cases of Lambda function
- Scheduled Job like, File processing, Data extraction
- Mobile App back-end
- Status updates in workflow base application.
- Email sending.
- Lambda supports code for:
- Java
- Python
- C#
- Node.js
- Python
- Ruby
- PowerShell
- Lambda Invocation
- Lambda functions are reactive in nature.
- So once you upload your code to the Lambda function, you need to invoke them.
There are three ways to invoke Lambda function
- Synchronous invoke (Request/Response)
- Asynchronous invoke (Event based)
- Stream base invoke