
CLI, infrastructure as code or an agent
Deploy with one aws lambda-web deploy command, define the Web Function in AWS SAM or AWS CloudFormation, or let a coding agent build and deploy it.
Pay for CPU, not for waiting
You pay for requests, the CPU time your code actively uses, the memory each execution environment uses, and data transfer.
One environment, many requests
Each execution environment serves many requests at once. Cap each endpoint's request rate and number of environments to protect downstream services.
Canary and rollback
Send a share of traffic to a new revision, then promote it or roll it back.
One URL, several Regions
A MultiRegion endpoint sends each request to the lowest-latency Region it serves.
Auth, Amazon CloudFront, logs and metrics
Choose IAM or application-managed authentication on each endpoint, put Amazon CloudFront in front for a custom domain and caching, and monitor with Amazon CloudWatch.
Sample code
Deployable examples with the AWS CLI, AWS SAM and the AWS CDK.
Choosing the right one
Event Functions for events, durable functions for long-running workflows, Web Functions for HTTP, and Lambda Managed Instances and Lambda MicroVMs when you need more control.
What's next
Give a thumbs-up to the issues you need.
What a Web Function is
Your web server is the function
A Web Function runs a standard Node.js server that listens on the port Lambda gives it.