Skip to main content

Basic Understanding on AWS Lambda

In this article, we will discuss "Brief Understanding on AWS Lambda". As we know, Amazon Web Services (AWS) offers more than 200 services. Today, I'll try to explain to you AWS Lambda in simple terms. You get a brief exposure to what exactly the AWS Lambda is, how it works, its limitations, benefits, costing, and more.

What is AWS Lambda?


Lambda is a serverless, event-driven compute service. Here, we run our code without provisioning and managing any server. AWS Lambda functions are scaled automatically, from a few requests to thousand requests per day or second. You can pay only for the compute time, it will not change us when our function is not running.

We can invoke a Lambda function using the Lambda API, AWS CLI or Lambda can run our function to handle the response of other AWS services. Some of the common examples are given below:

  • Process streaming data stored in Amazon Kinesis.

  • Handle user response in Amazon Connect in between the calls.

  • Process two-way communication of Amazon Pinpoint using Amazon SNS.


Lambda Streaming Process


We can use AWS Lambda and Amazon Kinesis to process real-time streaming data for application activity tracking, transaction order processing, clickstream analysis, data cleansing, log filtering, indexing, social media analysis, IoT device data telemetry, and metering.

I will explain more about the AWS Lambda and Amazon Kinesis for delivery reports of Pinpoint messages and AWS Connect (Contact Center) in our coming articles.

 

[caption id="attachment_3044" align="aligncenter" width="951"] aws.amazon.com[/caption]

AWS Lambda Feature


Some are the AWS Lambda Feature mentioned below.

  • No new language knowledge, tool, or framework is required for AWS Lambda. AWS Lambda natively supports Java, Python, C#, Node Js, Go, PowerShell, and Ruby.

  • AWS Lambda manages all the infrastructure and scales those automatically. So we can focus on the required development.

  • Lambda offers built-in logging and monitoring through Amazon CloudWatch.

  • It offers multiple options like AWS S3 Bucket, CloudWatch, DynamoDB, Amazon Kinesis Stream, and many more to trigger an event.

  • We can use AWS Lambda to create new backend application services triggered on-demand using the Lambda application programming interface (API) or custom API endpoints built using Amazon API Gateway.

  • We pay only for the request served and compute the time required to run the code.

  • AWS Lambda is secure and used AWS IAM role and policies. Each service required the related policies and role otherwise created Lambda function will not work.


AWS Lambda Pricing


AWS Lambda pricing is calculated on memory and duration used by our function. We can assign up to 10GB of memory to a Lambda function, by default it's set to 128MB. AWS Lambda also provides a free tier which includes one million free requests and 400,000 GB-seconds of computing time per month. You can get full details for AWS Lambda Pricing here or you can use the AWS pricing calculator.

Limitation of AWS Lambda


Some of the Cons/disadvantages of AWS Lambda are given below:

  • Lambda is not suitable for small projects.

  • By default, memory is used to


Create AWS Lambda Function


Please check out our previous post "How to Send SMS with AWS SNS using Lambda & Python". In this, you got the complete exposure of creating Lambda function and also about the AWS SNS (Simple Notification Services).

Conclusion


In this article, we are discussing "Basic Understanding on AWS Lambda". Hope you like this article, We will discuss more on Lambda in our future articles. Such as Lambda Versioning, Lambda Alias, and many more. Please feel free to add your comments if any queries or send your feedback.

Keep learning & stay healthy :)



You may like:


How to Setup AWS Pinpoint (Part 1)


How to Upload File to AWS S3 Bucket Laravel


How to Create AWS IAM User with Programmatic Access


How to Upload File to AWS S3 Bucket Laravel

Comments

Popular posts from this blog

Laravel Logging Guzzle Requests in File

In this article, we will discuss “Laravel Logging Guzzle Requests in File”. In the multiple scenarios, we have to use third-party API’s in our project and test those API using postman or any other tool. But also required to maintain a log for each request, such as what we send (request)? and what we receive (response)? Today, […] Read out the full post at here

How to Use SSH with AWS EC2 Instance?

In this article, we will discuss "How to Use SSH with AWS EC2 Instance?" . As I already explain the setup of EC2 Instance and the use of an Elastic IP in my previous article. Today, we will learn how to connect an EC2 instance using SSH. If still, you have not read my previous articles then I recommend checking them once for a better understanding. Prerequisites A running EC2 Instance . Elastic IP (Optional for this article) ".pem" file, which is downloaded when setup the EC2 Instance. If not having the ".pem" file, then you have to create new key/value pairs. Connect via Terminal or WSL(Window Subsystem for Linux) Open your terminal and go to the directory where you downloaded your ".pem" file. Use the following command to connect with the server. ssh -i "****.pem" username@<publicDNS> or <IP Address> The same terminal command can be used in the windows Linux terminal. I'm using ubuntu on my windows machine...

How to Setup and Install Next.js App?

In this article, we will discuss "How to Setup and Install Next.js App" from scratch. What is React.js and Next.js? "React.js" is a JavaScript library for building user interfaces (elements that users see and interacting on-screen). Basically, React provide us some helpful functions to build UI, and leaves it on us where to use those functions in the application. "Next.js" is a React framework. It is maintained by "Vercel" . Next.js features to solve common application requirements such as routing, data fetching, integrations - all while improving the developer and end-user experience. Why we use Next.js ? Next.js comes with the some additional features to solve come application requirements such as: We can build SSG (Static Site Generation), SSR (Server-Side Rendering) and SPA (Single Page Application) apps. Hot code Reloading: Reload the page when it detects any change saved. Routing: No need to configure any route. Files put in the pages fol...