Why AWS Lambda?

AWS Lambda is a compute service that runs your code in response to events and automatically manages the compute resources, making it the fastest way to turn an idea into a modern, production, serverless applications.

Benefits of AWS Lambda

Run code without provisioning or managing infrastructure. Simply write and upload code as a .zip file or container image.
Automatically respond to code execution requests at any scale, from a dozen events per day to hundreds of thousands per second.
Save costs by paying only for the compute time you use—by the millisecond—instead of provisioning infrastructure upfront for peak capacity.
Optimize code execution time and performance with the right function memory size. Respond to high demand in double-digit milliseconds with Provisioned Concurrency.

How it works

AWS Lambda is a serverless, event-driven compute service that lets you run code for virtually any type of application or backend service without provisioning or managing servers. You can trigger Lambda from over 200 AWS services and software as a service (SaaS) applications, and only pay for what you use.
  • File processing
  • Diagram showing how AWS Lambda works. A photograph is taken, then uploaded to the S3 bucket. Lambda is triggered to run resizing code, and the photo is resized.
  • Stream processing
  • Diagram showing how Amazon Kinesis works. Social media stream is loaded into Kinesis, then Lambda is triggered. Lambda runs code the generates hashtag data, and the data is stored in DynomoDB.
  • Web applications
  • Diagram showing how Amazon S3, API Gateway, and DynamoDB work together to retrieve weather data.
  • IoT backends
  • Diagram showing how Amazon Kinesis and AWS Lambda help order replacement parts.
  • Mobile backends
  • Diagram showing how Amazon API Gateway, AWS Lambda, and Amazon SNS work together to help users receive status updates notifications.

AWS for Every Application

AWS Lambda, a serverless compute service, executes your code in response to events, handling compute resources for you. Discover how AWS's comprehensive set of infrastructure capabilities and services enables rapid and cost-effective modern applications development. 

Learn more

Use cases

Meet resource-intensive and unpredictable demand by using AWS Lambda to instantly scale out to more than 18k vCPUs. Build processing workflows quickly and easily with suite of other serverless offerings and event triggers.
Combine AWS Lambda with other AWS services to create secure, stable, and scalable online experiences.
Preprocess data before feeding it to your machine learning (ML) model. With Amazon Elastic File System (EFS) access, AWS Lambda handles infrastructure management and provisioning to simplify scaling.
Build event-driven functions for easy communication between decoupled services. Reduce costs by running applications during times of peak demand without crashing or over-provisioning resources.

Explore more of AWS