0% found this document useful (0 votes)
19 views16 pages

11 - AWS Lamda

AWS Lambda is a serverless computing service that allows users to run code in response to events without managing servers, automatically scaling and charging based on execution time. It is suitable for tasks like image processing, data transformation, and real-time notifications, triggered by various AWS services. However, it has limitations such as a maximum execution time of 15 minutes, statelessness, and potential cold start delays.

Uploaded by

Yati Goel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views16 pages

11 - AWS Lamda

AWS Lambda is a serverless computing service that allows users to run code in response to events without managing servers, automatically scaling and charging based on execution time. It is suitable for tasks like image processing, data transformation, and real-time notifications, triggered by various AWS services. However, it has limitations such as a maximum execution time of 15 minutes, statelessness, and potential cold start delays.

Uploaded by

Yati Goel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

MPRASHANT

1
2
What is Lambda?

3
AWS Lambda is a serverless computing service that
lets you run code in response to events without
managing servers.

You just upload your code, and AWS automatically


handles the rest, scaling as needed and only charging
for the time your code runs.
4
When to use Lambda?

5
"Image Processing: Let’s say users upload images to your app.
You can set up Lambda to automatically resize, compress, or
even apply filters to each image as it’s uploaded."

"Data Transformation: If you need to clean up or process data


before storing it in a database, a Lambda function can handle
that transformation automatically."

"Real-Time Notifications: If an event happens—like a new user


signing up—you can use Lambda to trigger an email, SMS, or
other notifications instantly."
6
MPRASHANT

Event-Driven Execution:

Lambda is an event-driven service, meaning that it runs your


code in response to certain triggers or events.

These events can come from many different AWS services like
S3 (file uploads),
DynamoDB (database changes),
API Gateway (HTTP requests),
CloudWatch (scheduled events), etc.

7
MPRASHANT

Automatic Scaling:

AWS Lambda automatically scales the execution of


functions in response to the number of incoming
requests.

If a thousand requests come in at the same time, AWS


Lambda will handle them in parallel, making it highly
scalable without any configuration.
8
MPRASHANT

Pay-as-You-Go:

Lambda uses a pay-as-you-go pricing model. You are billed


based on the number of function executions and the
duration of each function's runtime (measured in
milliseconds).

This is cost-effective as you only pay for the compute time


that you use, and there's no charge for idle time.

9
MPRASHANT

AWS Lambda language support

Node.js (JavaScript)
Python
Java
C# (.NET Core)
Ruby
Custom Runtime API
10
MPRASHANT

11
MPRASHANT

AWS Lamda Limitations

12
MPRASHANT

Execution Time Limit: Lambda functions can only run for a


maximum of 15 minutes. If you need longer-running tasks, Lambda
might not be the best choice.

Stateless: Lambda functions don’t keep state between invocations,


so they’re best for tasks that don’t require long-term memory.

Cold Start Delays: If a Lambda function hasn’t run in a while,


there’s sometimes a slight delay—called a 'cold start'—when it
starts up. This can add a little latency, but AWS provides ways to
mitigate it for critical functions.

13
MPRASHANT

14
MPRASHANT

15
MPRASHANT

16

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy