SVS347: Building and scaling low latency web applications with AWS Lambda Web Functions

Resources for SVS347: Building and scaling low latency web applications with AWS Lambda Web Functions

In this code talk, we built ServerlessQ, a full-stack multiplayer trivia game, live with AWS Lambda Web Functions, and the audience played it in real time. We showed how each execution environment handles concurrent HTTP requests, serving server-sent events (SSE) for the live leaderboard alongside API traffic while scaling on demand. Using Express and React without Lambda-specific adapters, we added routing, static assets, runtime configuration, business logic and Amazon DynamoDB persistence. Then we went global with multi-Region latency routing, observability, canary deployments and fast rollback.

This page has the slides, the ServerlessQ source code and practical patterns for building and scaling low-latency web applications on AWS Lambda.

ServerlessQ source code

GitHub repo

The trivia game from the session: an Express API and a React frontend on two Web Functions, with Amazon DynamoDB and Terraform for the supporting infrastructure.

What a Web Function is

Your web server is the function

Express runs as it is, listening on the port Lambda gives it, with no Lambda-specific adapter.

Building and deploying the app

Two Web Functions, one deploy command

The API and the React frontend each deploy with one `aws lambda-web deploy` command, and the frontend reads the API address from `/config.json` at runtime.

Server-sent events

Streaming as plain HTTP

The live leaderboard is an ordinary streamed HTTP response, with one DynamoDB poller per game shared by every stream in an execution environment.

Multi-concurrency and scaling

One environment, many requests

Each execution environment serves many requests at once, so the audience joining the game started few environments.

Multi-Region endpoints

One URL, several Regions

One configuration change served the same revision from three Regions behind a single global domain, with latency-based routing.

Observability

Logs and metrics in Amazon CloudWatch

Request, concurrency and Region metrics for each endpoint, centralized in the home Region.

Canary deployments and fast rollback

Revisions and traffic splits

Send a share of traffic to a new revision, then roll back by changing revision weights instead of redeploying code.

Serverless Patterns for Web Functions

Sample code

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

More on Lambda Web Functions

Related re:Invent 2026 sessions

Other sessions on Web Functions this year.

Presented by:

Fabrianne Effendi

Fabrianne Effendi

Assc. Serverless Specialist Solutions Architect @ Amazon Web Services (AWS)

Jan Michael Go Tan

Jan Michael Go Tan

Principal Solutions Architect at Amazon Web Services (AWS)