Lambda MicroVM orchestration: test what happens after a retry
AWS previews Lambda MicroVM orchestration with durable functions. Test interrupted agent-generated jobs for duplicate effects and stale state before adopting the workflow.
What AWS released
AWS’s November 25 announcement introduces a developer preview connecting Lambda durable functions to Lambda MicroVMs. The extension manages sandbox lifecycles and runs tasks as durable operations, with checkpointing and retries. Tasks can run individually or in sessions sharing files and memory. TypeScript and Python SDK extensions are available. AWS explicitly says these preview features should not be used for production workloads. We have not tested the extension.
Isolation and recovery answer different questions
Our analysis: a sandbox helps contain code execution, while recovery determines what happens when work is interrupted. Consider an agent-generated export job that writes an output before its completion is recorded. A retry might encounter an existing file or repeat an external request. VM isolation alone does not establish that the business operation happened only once. Teams should define which outputs count as accepted and how repeated attempts are recognized.
Interrupt a disposable job deliberately
In a non-production trial, choose a job with a small input snapshot and a verifiable output. Interrupt it after an output is written but before completion is acknowledged, then observe recovery. Record repeated writes, conflicting artifacts, and the final accepted result. Try both a fresh task and a shared session; inspect whether leftover files change the answer. Use a stable job identifier to detect duplicates, keep trial credentials limited, and compare the result with an uninterrupted run. These are proposed checks, not claims about a defect in the preview.
Make acceptance explicit
Keep attempt records separate from the accepted artifact so a reviewer can trace how the result was produced. Set an explicit rule for replacing or rejecting partial output before evaluating throughput. Can an interrupted job recover to one accepted result without silently repeating an external effect?