AWS Lambda Functions
Serverless Computing
What is Serverless ??
Serverless is a term that generally refers to serverless applications. Serverless applications are ones that don’t need any server provision and do not require to manage servers.
What is AWS Lambda”(making too much noise in the market)”?Aws lambda is a Serverless computing platform provided . AWS Lambda function helps you to focus on your core product and business logic instead of managing operating system (OS) access control, OS patching, right-sizing, provisioning, scaling, etc.
Working of Aws Lambda ??
Step 1: First upload your AWS Lambda code in any language supported by AWS Lambda. Java, Python, Go, and C# are some of the languages that are supported by AWS Lambda function.
Step 2: AWS Lambda helps you to upload code and the event details on which it should be triggered.
Step 3: Executes AWS Lambda Code when it is triggered by AWS services:
Step 4: AWS charges only when the AWS lambda code executes, and not otherwise.
This will happen in the following scenarios:
- Upload files in an S3 bucket
- When HTTP get/post endpoint URL is hit
- For adding/modifying and deleting Dynamo DB tables
- In the process of data streams collection
- Push notification
- Hosting of website
- Email sending
Events that will Trigger AWS Lambda
Here, are Events which will be triggered when you use AWS Lambda.
- API Gateway allows you to trigger AWS Lambda on GET/POST methods.
- Insert, updating and deleting data Dynamo DB table
- To include push notifications in SNS
- To search for log history in CloudTrail
- Entry into an S3 object
- DynamoDB can trigger AWS Lambda whenever there is data added, modified, and deleted in the table.
- Modifications to objects in S3 buckets
- Notifications sent from Amazon SNS.
- AWS Lambda can be used to process the CloudTrail logs
- API Gateway allows you to trigger AWS Lambda on GET/POST methods.
- Insert, updating and deleting data Dynamo DB table
Follow for more such writing on AWS and cloud.