SVS348: Serverless Compute Built for the Web

Resources for SVS348: Serverless Compute Built for the Web

AWS Lambda Web Functions host the web server and frameworks you already run, including server-side rendering and streaming, with no adapter layer. This session covered how one execution environment serves many requests at once, how active CPU billing reduces costs while functions wait on a database or a model, and how to take an app to production: deploying, safe releases, multi-Region endpoints, security and monitoring.

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.

Deploying Web Functions

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.

Active CPU billing

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.

Multi-concurrency and scaling controls

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.

Built-in safe deploys

Canary and rollback

Send a share of traffic to a new revision, then promote it or roll it back.

Multi-Region endpoints

One URL, several Regions

A MultiRegion endpoint sends each request to the lowest-latency Region it serves.

Security and operations

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.

Serverless Patterns for Web Functions

Sample code

Deployable examples with the AWS CLI, AWS SAM and the AWS CDK.

AWS Lambda form factors

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.

AWS Lambda public roadmap

What's next

Give a thumbs-up to the issues you need.

Presented by:

Julian Wood

Julian Wood

Julian is a developer advocate at AWS who loves helping developers learn how serverless and AI technologies can transform the way they build and run applications in the cloud.