Web Functions bill active CPU and held memory; Event Functions bill wall-clock time multiplied by memory. For AWS's own three example workloads, classic Lambda at 512 MB is cheaper. Once requests spend seconds waiting (LLM streaming, slow APIs, long polls) Web Functions win by 40 times or more: a 10-second stream costs about $3 per million requests instead of $134. The arithmetic, the crossover and a checklist.
Lambda now has two ways to run request handlers. Event Functions are the classic model: one request per environment, billed on duration multiplied by configured memory. Web Functions, launched in October 2026, run your HTTP server with many requests per environment, billed on the CPU time your code actually uses plus the memory the environment holds. Which is cheaper depends on one ratio: how long a request waits compared with how long it computes.
From the Lambda pricing page, November 2026.
Event Functions, 1 GB
Web Functions (requests + CPU)
Cost per million requests as a request waits longer, with 50 ms of CPU each and 1 GB of memory (log scale). Web Functions exclude the memory an environment holds, which is a fixed monthly floor shared by every request it serves. Our arithmetic from the published prices.
Event Functions charge for every millisecond a request is open, so cost grows with waiting. Web Functions charge for CPU, so a request that spends 10 seconds waiting on a model and 50 ms computing costs the same as one that answers in 100 ms, plus its share of the environment's memory. With a 10-second stream that is about $1.68 per million requests in requests and CPU, plus memory: around $3 in total for a steadily used environment, against $134 on Event Functions.
Web Functions figures are AWS's, assuming one environment running all month. Event Functions figures are ours: duration × memory at the Arm price plus requests. Free tier and data transfer excluded.
At short durations the comparison turns on memory. If your function runs comfortably at 512 MB, classic Lambda is cheaper for these shapes. If it needs 1 GB or more for CPU (Lambda allocates CPU in proportion to memory), Web Functions come out ahead even here.
Bring your request counts, durations and memory settings and we'll run both models with you. 30 minutes, free.
Memory is billed for as long as an environment runs, and an environment does not stop when its last request ends. Easel, a hosting platform, measured how long: in its tests in us-east-1, Web Function environments kept running, and accruing memory charges, for 313 to 411 seconds after their last request. There was no setting to shorten that. Memory came to about 88% of Easel's compute and request costs, and making environments exit after 10 idle seconds cut metered time by roughly 20 times, but Lambda recorded every one of those exits as a runtime failure.
One tail of about 400 seconds at 1 GB costs about $0.0015 in memory. A single 200 ms request on Event Functions at 1 GB costs about $0.0000027, so for occasional traffic the tail alone costs several hundred times the request it followed.
If requests arrive more often than every five minutes or so, the environment never stops, and memory runs all month: about $9.50 per GB for each environment, before any request is served.
The model above treats that memory as a floor shared by many requests. That only holds with steady traffic. For bursty or occasional traffic, price the tails as well.
Easel's full write-up, with its measurements, its burst test and a benchmark against its own compute: Why we chose our own compute over AWS Lambda Web Functions, by Sean Whiteman, November 11, 2026.
Streaming LLM responses, where requests stay open for seconds while the model generates.
APIs that call slow downstream services: third-party APIs, payment providers, legacy systems.
Server-sent events and long polling.
Frameworks that already are an HTTP server (Express, Hono, Next.js), where an adapter added latency and cold starts.
Steady traffic, where one environment's memory is shared across many requests.
Short, CPU-light handlers that fit in 512 MB or less.
Event processing: queues, streams, schedules, S3 notifications. Web Functions are for HTTP.
Rarely called endpoints, where a Web Function environment's held memory would be the whole bill.
Code with module-level state that isn't safe to share between simultaneous requests.
The same I/O-heavy API on Fargate needs at least two small tasks for availability (0.25 vCPU, 0.5 GB on Arm: about $14 a month together) plus a load balancer (about $16 a month in hourly charges, before capacity units): roughly $35 a month before it serves a request, against about $20 on Web Functions. Containers win back ground at sustained high load, or when you need long-running processes, sidecars or more control than Lambda gives.
We'll model your traffic on Event Functions, Web Functions and Fargate side by side. 30 minutes, free.
Once a month: what changed in tech that month and what it means for you, from cloud and AI to security and the tools you build with. Every item links to its source. No sales pitch, unsubscribe in one click.
Book a free 30-minute call about it. Bring your setup and your bill; you'll leave knowing what we'd do first and roughly what it costs, whether or not you hire us.
Or keep reading
AWS Lambda Is Five Things Now: Event Functions, Web Functions, Durable Functions, MicroVMs and Managed Instances
In twelve months Lambda grew from one compute model to five. Event Functions (the classic model, renamed), Web Functions for HTTP servers billed on active CPU, Durable Functions for long workflows, MicroVMs for isolated sandboxes, and Managed Instances on EC2. What each is for and how each bills.
Read
Lambda Web Functions: Run Express or Hono on Lambda and Pay for Active CPU
Launched in October 2026, Web Functions run a normal HTTP server on Lambda: no adapter, many concurrent requests per environment, native streaming, and billing on requests, active vCPU and held memory. AWS's worked examples, how it compares with Event Functions and function URLs, and what to check before moving.
Read
As of November 9, 2026. Provided as is, for general information, and accurate to the best of our knowledge on the date shown. Not legal, compliance, tax, financial or other professional advice. Prices, limits and vendor services change; check current vendor documentation before relying on anything here. Terms of use.