TL;DR
Lambda is no longer one function. Event Functions, Web Functions, MicroVMs, Durable Functions and Managed Instances — what each runs, what it costs, which to pick.
If you still think of AWS Lambda as "a function that runs when an event arrives," your mental model is a year out of date — and the announcements that made it out of date did not happen at re:Invent 2026. That conference runs November 30 to December 4, 2026; it has not started yet as of this writing. The three execution models below landed across the previous twelve months: Lambda Managed Instances in November 2025, Lambda Durable Functions in December 2025, and Lambda MicroVMs in June 2026, with the newest piece — durable functions orchestrating MicroVMs — arriving as a developer preview on November 25, 2026. The re:Invent framing is wrong; the models themselves are real, generally available, and already reshaping what "serverless" means on AWS.
The short version: AWS now documents Lambda as three compute primitives — Event Functions (the classic function, renamed in October 2026), Web Functions (a port-listening HTTP server, also new in October 2026), and MicroVMs (an isolated Firecracker VM per user or job). Two cross-cutting modes sit on top of the function side: Durable Functions, which let one function run a checkpointed workflow for up to a year, and Managed Instances, which run your functions on dedicated EC2 capacity in your own VPC while AWS keeps managing the fleet. Pick the primitive by the workload's shape — event, HTTP server, or untrusted code — and pick the mode by the workload's duration and hardware needs. Our serverless platform comparison puts Lambda against Cloud Run, Fly.io, and the rest if you are choosing between clouds rather than inside AWS.
The three primitives: what AWS actually ships now
The rename is the tell. In October 2026 AWS renamed the classic Lambda function to Event Function — the same code, the same triggers, a name that admits it is now one of three things. The three primitives share a serverless foundation (no servers to manage, scale to zero, pay for what you use) and differ in almost everything else: what runs, how long it runs, how it is billed, and what it is for.
Event Functions are the Lambda you already know: a handler that runs in response to an event or API call, one invocation at a time, no shared state between invocations, with Lambda managing execution environments, scaling, routing, and fault tolerance. The default timeout is 15 minutes per invocation; on November 19, 2026 AWS raised the on-demand timeout to 30 minutes, and asynchronous or event-source-mapping invocations on Managed Instances can run up to 90 minutes. They are the right default for APIs behind API Gateway, stream processing, scheduled jobs, and automation — anything shaped like a request or an event. For the cold-start side of this model, see our cold-start guide.
Web Functions are the genuinely new programming model: your Node.js code listens on a port and handles HTTP requests directly, with frameworks such as Express, Hono, or React Router, and no adapter layer translating HTTP into events. Each execution environment serves multiple concurrent requests, Lambda provides an HTTPS endpoint, and billing is based on active CPU time rather than wall-clock duration — which is the correct meter for a web server that spends most of its life waiting on I/O. A single HTTP request can run up to 15 minutes (the default is 30 seconds). If you have ever wrapped an Express app in an adapter to deploy it to Lambda, Web Functions is the removal of that adapter.
MicroVMs are the third primitive and the least like a function: a Firecracker virtual machine per user or per job, with its own kernel, near-instant launch and resume, and state that survives suspension for up to 8 hours of combined running and paused time. You build the image from a Dockerfile and launch MicroVMs from it. The stated target is code you did not write — user-submitted code, AI-generated code, notebooks, sandboxes, security scanners, CI jobs. They are built on the same Firecracker virtualization that AWS says powers more than 15 trillion monthly Lambda invocations, but the unit of isolation is a whole VM, not a function execution environment.
| Event Functions | Web Functions | MicroVMs | |
|---|---|---|---|
| What runs | One handler per invocation | A port-listening HTTP server | A whole VM from a Dockerfile |
| Best for | APIs, events, automation | Web apps and API backends | Untrusted or user/AI code |
| Max duration | 15 min default (30 min on demand since Nov 19, 2026; 90 min async on LMI) | 15 min per HTTP request (30 s default) | 8 hours per session, running + suspended |
| Billing | Per request + GB-seconds | Per request + active CPU time | Per second of compute + snapshot storage |
| Concurrency | One request per environment | Many requests per environment | One job per VM |
The honest limit of the new framing is that it is still settling. The docs describe three primitives; the console still labels things by their old names in places; and Web Functions, the newest of the three, is the one with the thinnest track record in production. Treat the table above as the current shape, not a permanent taxonomy — and check the docs page before quoting any of these numbers to a client.
MicroVMs: isolated sandboxes for code you didn't write
MicroVMs are the model most teams will get wrong first, because they look like a faster container and behave like a different product. A container shares a kernel with its host; a MicroVM does not. Each one is its own Firecracker VM with its own kernel, its own HTTPS address, and no shared resources with the next session. That is the whole point: when the code running inside was written by a user, generated by an agent, or pasted from the internet, the isolation boundary has to hold even if the code is actively hostile.
The launch shape, from the June 22, 2026 announcement: VM-level isolation, near-instant launch and resume from snapshots, and state preservation — memory and disk intact — across suspend and resume, capped at 8 hours. The image comes from a Dockerfile, so the packaging skill transfers directly from container work. At launch MicroVMs were available in five regions (US East N. Virginia and Ohio, US West Oregon, Europe Ireland, Asia Pacific Tokyo); AWS has since expanded to 21 regions, and on November 11, 2026 added x86 support alongside the original Arm64 (Graviton) — which matters, because the sandboxes that run x86-only binaries, older toolchains, or prebuilt dependencies were blocked until then.
Who is this for? The use cases AWS names in the developer guide are interactive code environments, AI code-execution sandboxes, Jupyter-style notebooks, security scanning, reinforcement-learning environments, multi-tenant CI/CD, and game servers that run user scripts. The common thread is a session that belongs to one user or one job, lasts minutes to hours, keeps state, and must not be able to reach the next session. If your workload is a stateless request, a MicroVM is the wrong tool: it costs more per second than an Event Function and you are paying for isolation you do not need. If your workload is an agent writing and running code in a loop, an Event Function is the wrong tool: the 15-minute ceiling and the shared execution environment are both liabilities, and the MicroVM is the product AWS built for exactly that loop.
The pricing shape is per-second of compute while running, plus snapshot storage while suspended — AWS's list price in US East (N. Virginia) is $0.0000276944 per vCPU-second and $0.0000036667 per GB-second on Arm, with x86 priced differently. There is no free tier listed for MicroVMs. The meter that surprises people is the snapshot: a suspended MicroVM is cheap, but a fleet of suspended sessions with large snapshots is a storage bill that grows while nothing runs. Budget for the suspended state, not just the running seconds.
Durable Functions: workflows that outlive the invocation
Durable Functions solve the oldest complaint about Lambda: the function ends, and everything it knew ends with it. A durable function is an ordinary Lambda function that can save its progress — checkpoint after each step, retry failed steps automatically, wait for days, and resume after a crash — so a single multi-step application or AI workflow can run for up to one year. Each individual invocation is still capped (30 minutes), but the execution is not: the durable execution outlives any one invocation, and the function replays from its last checkpoint instead of starting over.
They were announced on December 2, 2025 at re:Invent 2025 and are available in the regions that support them. The programming model is a Durable Execution SDK — TypeScript and Python — in which the function expresses its work as durable operations: steps, waits, callbacks. A simplified sketch of the shape, not the exact API:
// Simplified sketch of the durable-execution shape —
// see the AWS Durable Execution SDK for the exact API.
export const handler = durable(async (ctx) => {
const order = await ctx.step("validate", () => validateOrder(input));
await ctx.wait("payment-window", { days: 3 }); // no duration charge while waiting
const receipt = await ctx.step("charge", () => charge(order));
return receipt;
});The economics are the part to model before adopting. On top of standard Lambda compute, AWS charges $8.00 per million durable operations (starting an execution, each step, each wait, each callback), $0.25 per GB of data written as checkpoints, and $0.15 per GB-month of data retained, with retention configurable from 1 to 90 days (14 days by default) — all on AWS's Lambda pricing page. There is a hard cap of 30,000 durable operations per execution, which cannot be raised. The pricing example AWS publishes — a million insurance claims a month on 1 GB Arm functions — comes to roughly $490 a month, most of it compute; the durable operations add $32. The lesson of that example generalises: for step-heavy workflows the operation count, not the compute, is the line to watch, and a workflow that checkpoints after every trivial operation is paying $8 per million for bookkeeping it could have batched.
The comparison that matters is with Step Functions, and our durable-execution comparison covers it in full. The short version: Step Functions is the visual, state-machine orchestrator with its own console and its own pricing per state transition; Durable Functions is orchestration expressed as code inside the function, with the checkpointing built into the SDK. Choose Step Functions when the workflow is owned by a platform team that wants a visible state machine; choose Durable Functions when the workflow is owned by the application team and the logic lives naturally in code. And note the failure mode both share: a workflow that runs for a year is a workflow whose code, dependencies, and data formats will change underneath it, and the checkpoint format is a compatibility contract you now own.
Managed Instances: EC2 capacity with the Lambda API
Lambda Managed Instances (LMI), announced November 30, 2025 and generally available at launch in five regions, are the answer to the question "what if I like Lambda's API but need EC2's hardware?" Your functions run on dedicated EC2 capacity in your own VPC, and AWS manages the instance lifecycle, OS and runtime patching, built-in routing, load balancing, and autoscaling. Each execution environment can process multiple concurrent requests, unlike the one-request-per-environment rule of on-demand functions.
The economics are EC2 economics with a Lambda wrapper: you pay standard Lambda request charges ($0.20 per million invocations), standard EC2 instance charges for the provisioned capacity — and your existing Compute Savings Plans and Reserved Instances apply, which AWS says can save up to 72% over EC2 On-Demand — plus a compute management fee of 15% calculated on the EC2 On-Demand instance price. That fee is the price of not managing the fleet, and it is the number to put in the spreadsheet before assuming LMI is cheaper than on-demand Lambda: for spiky, unpredictable traffic it usually is not; for steady-state, high-volume workloads with predictable utilisation it often is, because the EC2 commitment discounts outweigh the fee.
The capability has been extended steadily through 2026: up to 32 GB of memory and 16 vCPUs per function, with a configurable memory-to-vCPU ratio (2:1, 4:1, or 8:1), in March; Graviton5-powered C9g, C9gd, M9g, and M9gd instances in September; and a 90-minute timeout for asynchronous and event-source-mapping invocations in September, a 6x increase from the previous 15-minute limit (synchronous invocations keep the 15-minute maximum). Instances have a maximum 14-day lifetime, which is a security and compliance posture, not a bug: the fleet is continuously recycled, so anything that assumed a long-lived host will break, and anything that assumed a fresh host will be pleasantly surprised.
LMI is for the workload that is steady, long-running, or hardware-specific: large-scale data processing, media transcoding, scientific simulation, anything that needs a specific instance family or network configuration. It is not for the workload that is bursty — on-demand functions with scale-to-zero will beat it on cost and on cold starts — and it is not a way to run arbitrary software on Lambda: you are still writing Lambda functions, with Lambda runtimes and Lambda limits, on hardware you do not choose at the instance level. The capacity provider is the unit you configure; the instances inside it are AWS's to manage.
How the pieces combine: the November 25 preview
The newest piece, and the reason this article is worth writing this week, is the developer preview AWS announced on November 25, 2026: Lambda Durable Functions can now orchestrate Lambda MicroVMs. A durable function can launch a MicroVM, run tasks inside it, and manage its lifecycle — checkpoints, retries, parallel MicroVMs, token refresh — as durable operations, in the Durable Execution SDK for TypeScript and Python.
There are two modes: run a single task in a fresh MicroVM, or open a MicroVM session in which several tasks share the same files and memory. The target workloads are the ones that should never run next to your own code: CI/CD steps, security scanners, build farms, and agent-written programs. A durable function can now treat "run this untrusted code in a sandbox and tell me what happened" as one more checkpointed step in a workflow that lasts up to a year, triggered by SQS or EventBridge, with an optional worker library inside the MicroVM image that receives tasks, sends heartbeats, and reports results.
The status matters as much as the capability: this is a developer preview, the extension packages are labelled experimental, and AWS says preview features may change and should not be used for production workloads. The honest reading is that AWS is showing where the platform is going — durable orchestration plus isolated execution as one programming model — and inviting teams to try it on non-production workloads now. Build the sandbox pattern against it, but do not put a production agent loop on a preview API whose shape can change without a major version bump.
What each one costs
The pricing shapes are the decision, more than the features. Event Functions bill per request plus GB-seconds, with a free tier of 1 million requests and 400,000 GB-seconds a month — the cheapest way to run anything intermittent, and the reason Lambda won the first decade. Web Functions bill per request plus active CPU time, which rewards the I/O-heavy web workload and punishes the CPU-bound one. MicroVMs bill per second of compute plus snapshot storage, with no free tier — the price of isolation, and the meter to watch is suspended-state storage, not running seconds. Durable Functions add $8.00 per million durable operations, $0.25 per GB written, and $0.15 per GB-month retained on top of normal compute — the price of memory across invocations, and the meter to watch is the operation count. Managed Instances bill EC2 instance charges plus a 15% management fee plus the standard request charge — the price of hardware choice, and the meter to watch is utilisation: an idle managed instance is a bill with no work behind it, while an idle on-demand function costs nothing.
The failure mode common to all five is the same: picking the model by its marketing copy instead of by the workload's duty cycle. A function that runs constantly is cheaper on Managed Instances; a function that runs rarely is cheaper on demand; a function that runs untrusted code is not a price question at all, it is a MicroVM. Run the numbers on your own traffic shape — AWS's pricing page has the current rates, and the rates move — before committing an architecture to any of them.
Recommendation
For a team already on AWS, the order of work is: keep Event Functions as the default for anything shaped like a request or an event, and adopt Web Functions for the HTTP services you are currently wrapping in adapters — the adapter is the tax, and Web Functions removes it. Adopt Durable Functions for the multi-step workflows you are currently implementing with polling, callbacks, or a state machine you maintain by hand, and measure the durable-operation count in the first month before promising a cost. Adopt Managed Instances only for the steady-state workloads where you can show, with your own utilisation numbers, that EC2 commitment pricing plus the 15% fee beats on-demand — and only after confirming the workload tolerates the 14-day instance lifetime. Adopt MicroVMs for the agent and user-code sandboxes, and treat the November 25 durable-orchestration preview as the pattern to prototype now and the production dependency to wait on.
Architecture Decision
Decision: Treat Lambda as three primitives (Event Functions, Web Functions, MicroVMs) plus two cross-cutting modes (Durable Functions for long workflows, Managed Instances for steady-state EC2-backed functions) — keep Event Functions the default, adopt Web Functions for adapter-wrapped HTTP services, Durable Functions for checkpointed multi-step work, Managed Instances only where utilisation math justifies it, and MicroVMs for untrusted or agent-generated code, with the November 25 durable-orchestration preview prototyped but not put into production.
Context: The team runs serverless workloads on AWS and the platform changed under them in twelve months: Managed Instances (November 30, 2025), Durable Functions (December 2, 2025), MicroVMs generally available (June 22, 2026), the Event Function rename and Web Functions (October 2026), the on-demand timeout raised to 30 minutes (November 19, 2026), and the durable-orchestration developer preview (November 25, 2026). re:Invent 2026 runs November 30 to December 4 and has not started yet, so none of these are re:Invent announcements. The team needs a decision that is correct against the actual launch dates, not against the conference calendar.
Options considered: (1) The model above. (2) Stay on Event Functions for everything — zero migration cost, and the cost is permanent: adapters for web services, hand-rolled orchestration for long workflows, and no safe place to run untrusted code. (3) Move everything to MicroVMs — the most isolated option, and the most expensive, because isolation is billed per second whether the workload needs it or not. (4) Move steady workloads to Managed Instances without utilisation data — the fastest way to turn a cheap on-demand bill into an expensive idle-instance bill. (5) Build production agent loops on the November 25 preview — the earliest access to the combined model, and a bet on an experimental API that AWS says may change.
Why this one: It matches each model to the workload shape it was built for, and it separates the stable decisions (the three primitives and the two modes are generally available) from the unstable one (the orchestration preview). The default stays the default, so the migration is incremental: one service at a time, each justified by its own traffic shape. The utilisation requirement on Managed Instances is the guardrail that keeps the EC2 commitment from becoming a sunk cost, and the preview boundary is the guardrail that keeps an experimental API out of production.
What it costs you: Five billing models to understand instead of one, and the pricing page becomes a document you read quarterly rather than once. Durable Functions add an operation count to monitor and a checkpoint format to version. Managed Instances add a capacity provider to configure and a 14-day instance lifetime to design around. MicroVMs add image building from Dockerfiles and snapshot storage to budget for. And the whole model is still moving — Web Functions is weeks old, and the durable-orchestration preview will change shape before it is generally available.
When to reverse it: Reverse a Web Function migration the moment the framework needs something the HTTP model does not provide — the adapter you removed was also a compatibility layer. Reverse Durable Functions for any workflow where the operation count dominates the bill: if the checkpoints cost more than the compute, the workflow should have been a state machine or a queue. Reverse Managed Instances the moment utilisation drops below the level where the commitment discounts cover the 15% fee — idle EC2 capacity is the most expensive serverless bill there is. Reverse MicroVMs for any sandbox where the code turns out to be trusted after all: isolation you do not need is a tax you do not have to pay. And revisit the whole model after re:Invent 2026 (November 30–December 4): a conference that has not started yet can still change the map.
When NOT to use each one
Do not use MicroVMs for stateless requests — you are paying for a VM to do a function's job. Do not use Durable Functions for work that finishes in seconds — the operation charges and the checkpoint format are overhead for a job a synchronous call would have finished. Do not use Managed Instances for bursty traffic — an idle instance bills while an idle function costs nothing, and the 15% fee is charged on the On-Demand price whether you negotiated a discount or not. Do not use Web Functions for event-driven work — the HTTP model is for servers, and an event handler wrapped in an HTTP server is an adapter you built yourself. Do not build production workloads on the November 25 preview — developer preview means the API can change, and a workflow built on it is a bet on a draft.
The test for whether the new model is working is one question: for each workload, can you say in one sentence why it runs on the primitive it runs on, and can you show the bill that proves it? If the answer is yes on both, Lambda has become three tools and you are using each one for the job it was built for. If the answer is no, the models are ornaments on a function — and the work is in the traffic shape, the utilisation numbers, and the isolation boundary, not in the announcement list. That is the whole discipline, and it is enough.
Why This Matters
Understanding the business and technical context helps you make informed decisions rather than blindly following patterns.
Trade-offs to Consider
Every architectural decision involves trade-offs. Consider your specific requirements, team expertise, and scale when evaluating options.
When NOT to Use This
Knowing when a solution doesn't apply is as valuable as knowing when it does. Consider alternatives for your specific situation.
Decision Framework
Use this framework to evaluate whether this approach is right for your use case based on your specific constraints and requirements.