{
  "id": 22063812,
  "title": "Lambda MicroVMs Meet Durable Functions: Sandboxing Agent Code (Preview)",
  "url": "https://urgent.news/2026/11/26/lambda-microvms-meet-durable-functions-sandboxing-agent-code-preview",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-26T22:46:21.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/damogallagher/lambda-microvms-meet-durable-functions-sandboxing-agent-code-preview-57g7"
  },
  "original_language": "en",
  "account": "Running code written by an agent poses unique challenges in most agent builds. The desire for isolation, speed, and avoiding constant supervision of a large fleet is a common concern. On November 25, Amazon Web Services (AWS) announced a developer preview that integrates two existing services: Lambda MicroVMs and Lambda Durable Functions.\n\nLambda Durable Functions allow the creation of multi-step workflows capable of running for up to a year, with automatic checkpointing and retries. On the other hand, Lambda MicroVMs offer serverless compute with VM-level isolation, rapid launch and suspension, and state preservation. The primary use case for this extension is running user-generated or AI-generated code.\n\nThe new extension enables the management of MicroVM lifecycles through durable functions, treating each task as a durable operation. This ensures that progress is checkpointed, failed tasks are retried, MicroVM tokens are refreshed as needed, and multiple MicroVMs can be orchestrated in parallel by a single durable function. The extension can be triggered using services like Simple Queue Service (SQS) or EventBridge.\n\nAWS has provided an optional worker library that runs within the MicroVM image, handling tasks, sending heartbeats, and reporting results. The extension is currently available as a developer preview, with AWS stating that features may change and advising against its use in production workloads. It supports the AWS Durable Execution SDK for both TypeScript and Python. For now, the extension is available wherever both Lambda Durable Functions and Lambda MicroVMs are accessible.\n\nThe pricing for this extension has not been disclosed, so it would be wise to review the Lambda MicroVM pricing before making any estimates. To set it up, the extensions package should be added alongside the Durable Execution SDK in the function, and the worker library should be incorporated into the MicroVM image. A sample application is linked in the announcement, and the code can be found in the aws-durable-execution-sdk repository on GitHub.\n\nThe significance of this development lies in the complexity of agent sandboxes. The challenge is not in starting a VM, but rather managing the loop around it, handling situations where tasks may hang, tokens expire, or the orchestrator fails during a multi-step job. Durable execution can handle these complexities for free, provided the checkpoint model is suitable for the task at hand.\n\nTo explore this further, I would start by taking an existing sandboxed job, such as a dependency scanner, and port it using the sample application. Then, investigate three key aspects: how retries behave on a partially completed task, what happens when a shared-session task is retried for the second time, and the cost per run. While I have not personally tested this, my initial understanding is based solely on the launch post. One question that arises is how session state behaves after a failed task, which would be my first inquiry.",
  "summary": "Running code that an agent wrote is the uncomfortable part of most agent builds. You want isolation, you want it fast, and you don't want to babysit a fleet. On 25 November AWS put out a developer preview that connects two things it already had: Lambda MicroVMs and Lambda durable functions. Here's what the launch post says, and what I'd want to know before building on it. The pieces Lambda…",
  "key_points": [
    "Lambda MicroVMs and Durable Functions integrated, preview available.",
    "Enables management of MicroVM lifecycles through durable functions.",
    "Currently in developer preview, not recommended for production."
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}