WHAT IS AWS LAMBDA?
AWS Lambda is an event-driven computing cloud service from Amazon Web Services that enable developers to program functions on a payper-use basis without having to provision storage or compute resources to support them.
AWS supports code written in a variety of programming languages. AWS Lambda languages contain Node.js, Python, Java, and C#.
A major advantage of Lambda is how it charges the user. Rather than expecting to pay for entire servers to run the code, or pay for blocks of time, Lambda only charges for the compute time you are using, charging every 100 ms that the code is executed and the number of times the code is triggered.
AWS LAMBDA USE CASES
- Operating serverless websites
- Log analysis on the go
- Automated backups and everyday tasks
- Filtration and transformation of data.
- IoT backends
- Mobile Backends
BENEFITS OF AWS LAMBDA
- Easier operational management
- Faster innovation
- Reduced operational costs
- Enforcement of micro in microservices
DRAWBACKS OF AWS LAMBDA
- Problems due to third-party API system
- Lack of operational tools
- Architectural complexity
- Cold start
HOW TO USE LAMBDA FUNCTION IN AWS SCHEDULER APP?
- First, we have created AWS API gateway with API-KEY to ensure only trusted user can have access to API.
- API request identifies by pre-defined API key.
- Each API endpoint has assigned with AWS Lambda function.
- When endpoint calls, associated Lambda function will call and serve the request.
- Lambda functions integrated with AWS SQS and SNS to perform a specific task.