LOADING
×

AWS Lambda - Serverless Computing Platform

AWS Lambda is a serverless compute service for end users that runs code in response to events and automatically manages the compute resources.

AWS Lambda - Serverless Computing Platform

It's an event-driven computer service that lets you run code without managing and provisioning servers. AWS Lambda allows you to run code for virtually any type of application (CRM/ERP) or backend service, all with zero administration.

It can be directly triggered by AWS resources such as S3, DynamoDB, Kinesis, SNS, and CloudWatch, or it can be orchestrated into workflows by AWS Step Functions.

Provision Services by AWS Lambda & Managed by AWS :

  • Managing and provisioning the capacity of compute requirements like memory, CPU,network and other resources
  • High availability with auto-scaling features
  • Monitoring health
  • Server and OS maintenance
  • Applying security formation

All you need to do is just write the code and introduce it to AWS resources and AWS Lambda does the rest.

Features :

  1. It runs your code on a high availability of any computable infrastructure.
  2. Pay only for the compute time. Don't have to pay when your code is not running.
  3. Execute your code when needed and scale automatically from a few requests to thousands per second as the defined works trigger.
  4. Languages that support AWS lambda are  python, node js,ruby on rail, Java, Powershell, C# and Go language.

How Does it Work?

  • Upload your code to Lambda in one or more lambda functions
  • Lambda will execute the code on your behalf
  • It will automatically take care of provisioning and managing

Use Cases : Operating Serverless Website Example with AWS

AWS Lambda along with other AWS services can be used to build a website without having to manage a single server or an operating system. 

For a basic version of the website you can use AWS API Gateway, DynamoDB, Amazon S3 and Amazon Cognito User Pool.

Below Architecture Demonstrates Use for The Serverless Website

  • JavaScript runs in the browser and exchanges the data from a backend API built through API Gateway and AWS Lambda
  • AWS DynamoDB is a NoSQL database which is used for storing data through API’s Lambda function
  • Amazon S3 is used for hosting static website content like HTML, CSS, media files JavaScript which acts as a front end in the user’s browser
  • Amazon Cognito is used for user authentication and management with the help of a secured backend API

The architecture here is a normal version of a serverless website. It also can be complexed into a multi-functional website by adding other AWS services.

Few Benefits of AWS Lambda Listed Below :

  • You don't need to register Lambda tasks like Amazon SWF activity types
  • You can use any existing Lambda functions that you may have defined in workflows
  • Lambda functions are called directly by Amazon SWF. So there is no need to design a program to implement and execute them
  • You get the metrics and logs in Lambda for tracking function executions



Trendy