AWS
Imal Perera  

Introduction to AWS Lambda

Spread the love

What is AWS Lambda?

Lambda is an AWS service where you can upload your code, that piece of code which AWS called Lambda function then will be executed by the AWS infrastructure. this is very similar to deploying your code to your own server, the only difference is that you don’t need to worry about the server management, scaling, and the availability etc ( thank god right !!!! )

All your lambda functions can be written in Java, Python or NodeJs and these functions can use AWS services like S3 and DynomoDB but they should be always stateless. because lambda functions are stateless AWS can rapidly scale the server automatically to handle the volume of the incoming request.

How to Trigger a Lambda Function 

  1. Event-Based.
  2. Http Calls.

Event-Based 

You can call Lambda functions from scheduled events like cron, or you can trigger Lambda function from other AWS services, for example, you can trigger Lambda function when s3 file is created. 

Http Calls

Because lambda functions can be executed through HTTP calls, this is creating a new trend called  Serverless applications, developers can make cost-effective APIs which are scalable very quickly by using lambda functions as building blocks.

Next: How to create a lambda function 

Leave A Comment