Cloud Servers

AWS Lambda Web Functions: Run Your Express Server on Lambda With No Adapter — Pricing, Limits and Who Should Move

10 min read

AWS Lambda Web Functions: Run Your Express Server on Lambda With No Adapter — Pricing, Limits and Who Should Move

The Short Answer

AWS Lambda can now run your ordinary web server. Lambda Web Functions, announced on the AWS News Blog and checked today, December 1, 2026, takes a standard port-listening Node.js server — Express, Hono, Fastify, Next.js or any Node.js framework — and runs it on Lambda with no event-handler rewrite and no adapter library. One CLI command deploys it, Lambda handles scaling and multi-Region distribution, and you are billed for the CPU time your code actively uses rather than wall-clock duration.

Three facts decide whether this matters to you. First, each execution environment serves up to 128 concurrent requests, so one warm environment can carry a burst of traffic instead of spinning up per request. Second, the pricing is genuinely different: $0.30 per million requests, $0.0000276944 per active vCPU-second and $0.0000036667 per GB-second of memory in US East (N. Virginia) on Arm, per the Lambda pricing page checked today. Third, the launch footprint is narrow — Node.js 24 on Arm64 in five Regions — so this is a strong option for Node web apps today and a wait-and-see for everyone else.

What AWS Announced

Lambda now has three form factors, all on the same Firecracker isolation technology, per the announcement post checked today:

  • Lambda Event Functions — the Lambda you already know, renamed to make the model explicit. Event-driven, single-concurrent handler, wall-clock billing. Best for event processing, queue consumers and invocations triggered by other AWS services.
  • Lambda Web Functions — the new one. HTTP-native: your code listens on a port and handles standard HTTP requests, with multi-concurrent execution and active-CPU billing. Built for web applications, API backends and interactive HTTP workloads.
  • Lambda MicroVMs — isolated, stateful sandbox environments with customer-managed lifecycles for running untrusted or user-generated code. We covered how durable functions orchestrate them in our Lambda Durable Functions and MicroVMs analysis.

The server angle is the story. For a decade, “run my Express app” meant a VPS, a container service or a PaaS — something that listens on a port all day. Lambda asked you to reshape the app into a handler first. Web Functions removes that reshape: the same node index.js you run locally is the thing you deploy. AWS is absorbing the small-web-server use case into serverless, the same direction DigitalOcean took with App Platform deploys, as we explained in our DigitalOcean Harness Runtime analysis.

How It Works

The only code change is where your server listens. Lambda sets an AWS_LAMBDA_HTTP_ENDPOINT environment variable with the host and port; your server binds to it. Locally you set the variable yourself (for example 127.0.0.1:3000) and the identical code runs. No Lambda-specific wrappers.

Deployment is one command:

aws lambda-web deploy --name my-web-app --code ./my-app

Per AWS, the CLI bundles the source, creates the Web Function, publishes the first revision, attaches an endpoint and returns a live HTTPS URL in under a minute. A revision is an immutable snapshot of the code; the endpoint routes traffic to a revision — or splits it across revisions. That split is a built-in canary: one API call sends 90% of traffic to the current revision and 10% to the new one.

Multi-Region is a flag, not a project. Redeploying with --regions us-east-1,eu-west-1,ap-northeast-1 replicates the code to all three Regions and configures latency-based routing automatically behind one global URL. For mixed static-plus-dynamic sites, a Web Function endpoint can sit behind Amazon CloudFront as a private origin using origin access control (OAC) — CloudFront signs requests and the endpoint accepts only your distribution, so you skip both a public endpoint and custom authorization code.

Availability at launch, per the announcement: US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Tokyo) and Europe (Ireland), running Node.js 24 (nodejs24.x) on Arm64, with VPC connectivity. If your app needs another runtime or Region, that is a hard wait, not a workaround.

The Pricing Math

Web Functions bill four things: requests, active CPU time, consumed memory and standard data transfer, at 1 ms granularity. The US East (N. Virginia) Arm rates on the pricing page checked today:

  • Requests: $0.30 per million — note this is 50% higher than Event Functions’ $0.20 per million on the same page.
  • Active vCPU: $0.0000276944 per vCPU-second, charged only while your code is processing.
  • Memory: $0.0000036667 per GB-second, charged for each execution environment for as long as it runs — including time between requests.

AWS’s four worked examples (all US East Arm, excluding free tier and data transfer, assuming traffic spread evenly across a 30-day month with exactly one environment running throughout) show where the model wins:

  • Server-side rendered app: 15 million requests/month, 150 ms end to end, 40 ms active CPU, ~500 MB memory → $25.78/month ($16.62 CPU + $4.66 memory + $4.50 requests).
  • I/O-heavy API backend: 10 million requests, 200 ms end to end, 50 ms active CPU, ~300 MB → $19.61/month. You pay CPU for the 50 ms of work, not the 150 ms spent waiting on the database.
  • Lightweight authorizer: 100 million requests, 50 ms end to end, 12 ms active CPU, ~145 MB → $64.56/month, of which $30.00 is the request fee alone.
  • LLM streaming endpoint: 5 million requests, 3,000 ms end to end, 200 ms active CPU, ~512 MB → $33.94/month. The request stays open for 3 seconds; you pay CPU for 200 ms — one fifteenth of the wall time. With about six requests in flight sharing one environment, the memory charge is paid once instead of six times.

Now the honest caveats, all visible in AWS’s own text. The examples assume one environment running at all times, so the memory line is a full month of GB-seconds even at 3 a.m.; real traffic scales environments up and down, but a warm environment idling between requests still bills memory. The request fee punishes chatty, tiny-request workloads — nearly half the authorizer example’s bill. And active-CPU billing only saves money when requests actually wait: a CPU-saturated transform burning the full 150 ms gets no discount, while paying the higher $0.30 request rate. Data transfer is extra everywhere.

Web Functions vs Event Functions vs a VPS

Lambda Web Functions Lambda Event Functions VPS / small cloud server
Programming model Standard HTTP server on a port; Express/Next.js as-is Event handler function Anything that runs on Linux
Concurrency Up to 128 requests per environment One request per environment Whatever your server handles
CPU billing Active CPU only (1 ms granularity) Wall-clock GB-seconds Flat monthly, idle or busy
Memory billing Per environment while it runs, incl. idle gaps Bundled into GB-seconds during invocation Included in the plan
Request fee $0.30 per million $0.20 per million None
Scaling Automatic, multi-Region with latency routing Automatic, per-Region Manual; you size and patch the box
Launch limits Node.js 24, Arm64, 5 Regions Many runtimes, all Regions None — your choice of stack

Read the table by workload shape. I/O-heavy APIs, server-side rendering and streaming endpoints — code that spends most of its life waiting — are Web Functions’ home turf. Short, CPU-bound, event-triggered jobs stay cheaper and simpler on Event Functions, especially with the lower request fee. And a VPS still wins the oldest argument in hosting: a small app with steady, modest traffic costs a flat, predictable amount on a box you control, with any runtime and any Region. What the VPS cannot match is the operational side — no patching, no capacity planning, canary rollouts and multi-Region routing as deploy flags. The patching burden alone is why we recently walked through Lambda customer-managed runtimes: every layer AWS absorbs is a layer you stop maintaining.

Who Should Move Now, Who Should Wait

Move now if you run a Node.js web app or API on a small VPS or container mainly because Lambda wanted a handler rewrite. The port is close to free: bind to the environment variable, check that native dependencies have Arm64 builds, deploy, and compare one week of bills against AWS’s example shapes. SSR sites and LLM streaming endpoints benefit most.

Move carefully if your traffic is extremely chatty (the $0.30-per-million request fee adds up), if you depend on x86-only native modules, or if your users sit far from the five launch Regions. Model your request count and active-CPU ratio before migrating.

Wait if you need Python, Go, Java or any runtime other than Node.js 24, if you need a Region outside the launch five, or if your workload is event-driven rather than HTTP — Event Functions remain the right tool there, and nothing about this launch changes their pricing.

Migration Checklist

  1. Bind correctly. Read host and port from AWS_LAMBDA_HTTP_ENDPOINT; keep a local default so the same code runs on your laptop.
  2. Audit native dependencies. Web Functions run on Arm64 at launch; any compiled module needs an Arm64 build — the same check that applies to every Arm migration.
  3. Measure your active-CPU ratio. Log end-to-end time versus CPU time for your top endpoints. If most requests wait on databases or downstream APIs, the model favors you; if they compute, price both form factors.
  4. Count requests honestly. Multiply monthly requests by $0.30 per million before anything else; for high-volume tiny-request services this line can dominate.
  5. Deploy to a dev endpoint first. Use revision traffic splitting (90/10) for the first production rollout instead of a hard cutover.
  6. Front it with CloudFront if you serve static assets. OAC keeps the Web Function endpoint private while the CDN handles cacheable content.
  7. Watch memory across idle gaps. Environments bill memory while they exist; review environment counts after the first week and compare against the one-environment examples.

FAQ

What exactly did AWS announce?
Lambda Web Functions: a Lambda form factor that runs standard port-listening HTTP servers (Express, Hono, Fastify, Next.js, any Node.js framework) with no adapter, up to 128 concurrent requests per environment, active-CPU billing, one-command deploys with immutable revisions and traffic splitting, and optional multi-Region latency-based routing. Announced on the AWS News Blog, verified December 1, 2026.

What does it cost?
In US East (N. Virginia) on Arm, per the Lambda pricing page checked today: $0.30 per million requests, $0.0000276944 per active vCPU-second, $0.0000036667 per GB-second of memory, plus standard data transfer. AWS’s examples: a 15M-request SSR app at $25.78/month, a 10M-request I/O-heavy API at $19.61/month, a 5M-request LLM streaming endpoint at $33.94/month.

Do I have to rewrite my app?
No handler rewrite and no adapter. The one change is listening on the host and port from the AWS_LAMBDA_HTTP_ENDPOINT environment variable. The same code runs locally by setting that variable yourself.

Which runtimes and Regions are supported at launch?
Node.js 24 (nodejs24.x) on Arm64, in US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Tokyo) and Europe (Ireland), with VPC connectivity. Other runtimes and Regions are not part of the launch announcement.

Is it cheaper than my VPS?
It depends on shape, not size. I/O-heavy and streaming workloads with spiky traffic usually win on Web Functions because idle CPU is free and scaling is automatic. Steady, CPU-bound, low-request workloads often stay cheaper on a flat-rate VPS — and you keep full control of the stack. Run your request count and active-CPU ratio through AWS’s published rates first.

What happens to classic Lambda functions?
Nothing changes. They are now called Event Functions, keep the event-driven single-concurrent model and wall-clock GB-second billing, and remain the right choice for event processing and queue consumers.

The Bottom Line

Lambda Web Functions is AWS conceding the obvious: most web code is a server listening on a port, and forcing it into a handler was friction, not architecture. The result — your Express or Next.js app deployed with one command, serving up to 128 concurrent requests per environment, billed only for active CPU — is the strongest serverless answer yet to the small VPS, priced transparently enough that AWS’s own examples tell you exactly when it wins: I/O-heavy APIs, server-side rendering and streaming endpoints, at $19.61 to $33.94 a month in AWS’s worked cases. The limits are equally clear: Node.js 24 on Arm64, five Regions, a $0.30-per-million request fee and memory that bills while environments idle. If your app fits the launch footprint, the test costs one deploy and a week of billing data. If it does not, keep the VPS — but know the gap between “serverless” and “server” just got much smaller.

Sources: AWS News Blog, “Announcing AWS Lambda Web Functions” (aws.amazon.com/blogs/aws/announcing-aws-lambda-web-functions-for-fast-consistent-web-app-performance-anywhere/), checked December 1, 2026. AWS Lambda pricing page (aws.amazon.com/lambda/pricing/), checked December 1, 2026 — Web Functions rates and worked examples, Event Functions $0.20 per million requests. Server News Hub coverage linked above: AWS Lambda Durable Functions MicroVMs 2026, DigitalOcean Harness Runtime App Platform Deploy 2026, AWS Lambda Customer-Managed Runtimes 2026.

One response to “AWS Lambda Web Functions: Run Your Express Server on Lambda With No Adapter — Pricing, Limits and Who Should Move”

Leave a Reply

Your email address will not be published. Required fields are marked *