AI NewsInfrastructureAnnouncement

AWS Lambda adds Web Functions, a port-listening form billed on CPU time

AWS Lambda now has a third form factor, Web Functions, that runs a standard Express, Hono, Fastify or Next.js server on Firecracker with up to 128 concurrent requests per environment and billing metered on CPU time.

AI News

Editorial2 min read

LinkedInX

Why it mattersA team already running a Node HTTP server can deploy it to Lambda with one CLI command and pay for CPU rather than wall-clock time, which changes the math on serving an API or an AI inference endpoint from Lambda.

The gap between a Node.js server a developer runs locally and the Lambda function it has to become to deploy was always a rewrite. AWS said on 12 October that the rewrite is no longer needed: Lambda Web Functions, a new form factor, takes a port-listening Express, Hono, Fastify or Next.js server and runs it on Lambda directly, without an adapter.

The post calls out three form factors now sharing the same Firecracker isolation. Event Functions are the Lambda functions already in use, with the event-driven handler model and wall-clock billing. Web Functions use an HTTP-native model, up to 128 concurrent requests per execution environment, and billing metered on the CPU time the code actually uses. Lambda MicroVMs round out the three, isolated sandboxes for running untrusted or user-generated code with customer-managed lifecycles.

What the HTTP model changes

The programming model is the point. The code looks like a server any Node framework writes today, listening on a port, and the only difference AWS describes is the AWS_LAMBDA_HTTP_ENDPOINT environment variable Lambda sets at startup to tell the server which host and port to bind. The announcement post shows an Express app that reads that variable and runs the same code locally with the variable set by hand.

AWS deploys it with one command, aws lambda-web deploy --name my-web-app --code ./my-app, which the announcement says published the function, attached an endpoint, and returned a live HTTPS URL in under a minute. Multi-region deployment is a flag on the same command: a --regions list replicates the code across the given regions and sets up latency-based routing to a single global URL automatically.

Each environment handles up to 128 concurrent requests, AWS writes, so a burst of traffic shares warm environments rather than cold-starting one per request. CPU time is metered separately from memory, so wait on a database query or an API call consumes little CPU while memory is metered for as long as the environment exists. AWS calls out server-side rendering, API backends and AI inference endpoints streaming token responses as the workloads that benefit most, because they wait on I/O more than they compute.

What is live, and what is next

AWS Lambda Web Functions is available today in five regions: US East (N. Virginia and Ohio), US West (Oregon), Asia Pacific (Tokyo) and Europe (Ireland). Web Functions run Node.js 24 on Arm64 at launch and support Amazon VPC connectivity. For applications that combine static and dynamic content, a Web Function endpoint can sit as the origin behind an Amazon CloudFront distribution, with CloudFront Origin Access Control signing requests so the endpoint is not reachable without the distribution.

For a canary release, AWS exposes revision-weights on a single update-web-function-endpoint call, so sending ten percent of traffic to a new revision is one API call and no additional tooling. The announcement is by Micah Walter, a Senior Solutions Architect at AWS.

Source

AWS News Blog, Announcing AWS Lambda Web Functions. Hacker News discussion at item 50069318, 125 points at the time of this item.

This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.

Share
LinkedInX
Start a project