AWS Lambda for beginners with example

8 min readFeb 27, 2021

In this blog we will learn about AWS Lambda and create a lambda function.

What is Serverless Compute ?

Serverless compute is a cloud computing execution model in which the AWS Cloud acts as the server and dynamically manages the allocation of machine resources.

  • AWS Lambda is the AWS serverless compute platform that enables you to run code without provisioning or managing servers.
  • With AWS Lambda, you can run code for nearly any type of application or backend service — with zero administration
  • Only upload your code, and AWS Lambda performs all the tasks you require to run and scale your code with high availability.

AWS Lambda is sometimes referred to as a function-as-a-service (FaaS)

AWS Lambda executes code whenever the function is triggered, and no Amazon Elastic Compute Cloud (Amazon EC2) instances need to be spun up in your infrastructure.

Benefits of Lambda over EC2 Instances

  • No Servers to manage
  • Automatically scales your application by running code in response to each trigger.