Professional Documents
Culture Documents
Exp - 11 - ADevOps - 44 (2) Adnan
Exp - 11 - ADevOps - 44 (2) Adnan
Theory: -
AWS Lambda is a serverless computing service that allows you to run code without having
to deploy or manage servers, create workload-aware cluster scaling logic, maintain event
integrations, or manage runtimes. With Lambda, you can run code for almost any form of
application or backend service with no management. Simply submit your code as a ZIP file
or container image, and Lambda will automatically and accurately assign compute execution
power and run your code in response to each incoming request or event, regardless of scale.
You may configure your code to be triggered automatically by over 200 AWS services and
SaaS apps, or you can call it directly from any web or mobile app. You may develop Lambda
functions in your favourite language (Node.js, Python, Go, Java, and others) and leverage
serverless and container tools to build, test, and deploy your functions, such as AWS SAM or
Docker CLI.
Benefits:
There are no servers to administer.
AWS Lambda runs your code without you having to provision or maintain
infrastructure. Simply write the code and publish it to Lambda as a ZIP file or as
a container image.
Continuous scaling
AWS Lambda grows your application automatically by running code in response to each
event. Your code works in parallel and processes each trigger separately, scaling perfectly
with the workload size, from a few requests per day to hundreds of thousands per second.
Cost optimized with millisecond metering
You only pay for the computing time you use with AWS Lambda, so you're never paying for
over-provisioned infrastructure. You are charged for each millisecond that your code
executes as well as the number of times it is triggered. You may save an extra 17% with
Compute Savings Plan.
Consistent performance at any scale
You may minimise your code execution time using AWS Lambda by selecting the
appropriate memory size for your function. By enabling Provisioned Concurrency, you may
additionally keep your functions initialised and hyper-ready to reply in double digit
milliseconds.
Steps: -
1) Go to Amazon console and select Lambda Service
6) Click on “Test”, then on “Configure test event” and give the event
name.
5) Click on “Test”
6) Go to Monitor in Nav and Observe CloudWatch metrics.