Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Evaluates, configures, and migrates workloads to AWS Lambda Managed Instances on EC2 capacity in your account.
Use this skill ↓27% 91%+64 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 6 of 22 without it.
3 of 3 safety checks passed
Not used yet
LMI runs multiple invocations concurrently in the same execution environment. The concurrency model differs by runtime — some require thread safety, others provide process isolation.
When reviewing a function for LMI readiness, check each item:
/tmp paths (use request ID in filenames, clean up after — shared across ALL runtimes)/tmp usage under max concurrency (concurrent requests × per-request file size)Python uses multiple independent processes, each with its own interpreter and memory space. Global variables, module-level caches, and singleton objects are duplicated per process, not shared. If a function works on standard Lambda today, it works on LMI without code changes related to shared state.
Key concerns:
/tmp filesystem is shared across all processes — use context.aws_request_id in filenamesMemoryUtilization metric and adjust ratio if neededSafe patterns (no locking needed):
os.environ readsSkills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.