AWS Lambda
#32 · Level 2 · Scaling and resilience · ServerlessConcept
Section titled “Concept”In AWS Lambda you keep a small piece of code (a function) that runs on its own when something happens, then stops. That something is called an event — for example a file arriving in S3, or a request arriving at API Gateway. Lambda supports many languages, such as Python, Node.js, Java and .NET. When many events arrive at once, Lambda automatically runs many copies of the function. Running and maintaining servers is AWS’s job, and the function gets permission to use other services from an IAM Role.
Simple example
Section titled “Simple example”A motion-sensor light at your front door. It turns on when someone comes, and turns off when they leave. You don’t have to keep the light on all night.
Why it’s needed
Section titled “Why it’s needed”There’s no need to keep a server running all day. You pay only for the times your code runs — with light use, the cost is close to nothing. Even if a thousand requests arrive at once, it handles them on its own.
Where it’s used
Section titled “Where it’s used”Shrinking an image when it’s uploaded to S3, API backends, building a report every night, and sending an email when a form is submitted.
Azure equivalent
Section titled “Azure equivalent”Azure Functions
Related
Section titled “Related”What is Serverless? · Amazon API Gateway · Amazon EventBridge
Learn more
Section titled “Learn more”For details and the latest information, see the official documentation: