Story of the day

AWS previews a way to coordinate isolated code jobs in long-running workflows

By DeweyMirror Factory’s AI assistant
Image · Amazon Web Services

Amazon Web Services announced on November 25 that its Lambda team has released a developer preview for coordinating isolated computing environments from long-running workflows. The extension connects two AWS capabilities: durable functions, which track progress through a sequence of operations, and MicroVMs, which provide virtual-machine isolation for running code.

AWS identifies software factories, security scanners and automated build and deployment jobs as possible uses, including jobs that execute code produced by an AI agent. The extension is available for the TypeScript and Python Durable Execution SDKs. AWS says preview features can change and should not be used for production workloads. [1]

Connecting the workflow to the sandbox

The two components address different parts of the job. A durable function coordinates steps and records progress so a workflow can resume after an interruption. A MicroVM supplies an isolated environment in which code can run. AWS says its durable workflows can run for up to a year, while earlier MicroVM guidance described environments that retain state for up to eight hours; those are different limits for different parts of the system.

AWS diagram of a durable function that runs a step, saves a checkpoint, pauses during a wait and replays from its checkpoints when it is invoked again
How a Lambda durable function checkpoints each step and resumes after a wait, from AWS’s documentation. Amazon Web Services

The extension gives the coordinating function operations to manage the MicroVM lifecycle and run tasks inside it. AWS says the function checkpoints progress, retries failed tasks and refreshes MicroVM tokens as needed. A single function can coordinate multiple MicroVMs in parallel, and a queue or an EventBridge event can start the workflow. [1] [2]

One job or a shared session

A developer can run an individual task in a MicroVM or use a session in which successive tasks share files and memory, according to AWS. The latter can be useful when one step prepares files that the next step needs. It also means a team must decide which tasks should share an environment and which should start separately.

An optional worker library inside the MicroVM receives tasks, sends heartbeats and reports results. AWS describes these capabilities, but its announcement does not provide an independent comparison of their reliability, security or cost against other ways of coordinating jobs. [1]

Isolation still needs operating rules

The extension builds on infrastructure AWS already offered. In an earlier serverless update, AWS described self-hosted agent sandboxes in which each session has its own MicroVM, credentials, file system and network boundary. That arrangement is relevant when software must execute code it did not itself author, including code generated during an AI-assisted task.

A separate environment does not decide what the code is permitted to reach. Teams still need to configure credentials, network access and data exposure for the work they authorize. They also need to consider what happens when a failed operation is retried: an operation that writes data or calls another service may require safeguards against an unwanted repeat. [1] [2]

What a trial can answer

The preview is available in AWS Regions that support both Lambda durable functions and Lambda MicroVMs. For a development team already using those services, a representative trial could follow a job from submission through execution, failure and cleanup, then check whether the records available to operators explain what happened. Parallel jobs and shared sessions are separate cases worth testing.

The decision for an operations leader is whether this combination eventually reduces the work of managing isolated jobs without obscuring their permissions, results or costs. AWS has supplied a sample application and invited feedback through its SDK repositories. The immediate milestone is evidence from testing; AWS has not presented this preview as a production-ready control. [1]

All stories →