xxxxxxxxxx
One can use Lambda in the following ways:
• As an event-driven compute service, AWS Lambda runs code in response to events.
• These events can be the changes to data in an Amazon S3 bucket or AWS DynamoDB
• Lambda can run code in response to HTTP requests using Amazon API Gateway or API calls made using AWS SDKs.
xxxxxxxxxx
Many people consider AWS Lambda to be a little confusing, but it is not.
It is just a simple four-step process that begins with uploading code to AWS Lambda.
The next step is to set up your code to trigger from other AWS services, HTTP endpoints, or mobile apps.
AWS Lambda will only run a code when it is triggered and will only use the computing resources needed to run it.
xxxxxxxxxx
The following is the list of what all can one build with AWS Lambda:
• Real-time file processing
• Sorting real-time stream processing
• Data processing
• Data validation
• Filtering
• Third-party API requests
xxxxxxxxxx
It is an AWS serverless computing service offered by Amazon Web Services that runs the code in response to events and automatically manages the compute resource.
xxxxxxxxxx
exports.fn = (event, context, callback) => {
console.log(event);
const age = event.age;
callback(null, age * 2);
};
xxxxxxxxxx
There are many activities that can be performed on AWS Lambda; for example, it can be used to build mobile backends from Amazon DynamoDB to retrieve and transform data.
Handlers transform and compress objects as they get uploaded to Amazon S3.
This is done by using Amazon Kinesis, serverless processing of streaming data.
The reporting and auditing of API calls can be made to any web service of Amazon, and many other activities can also be done with the help of AWS Lambda.