Comparison
There is one question that decides this, and it is not price: does your workload fit inside a function? If it does, use Lambda — genuinely. If it needs a machine, here is the math, on AWS's own published rates.
We would rather you use the right tool than buy the wrong one from us. If the right-hand column describes your workload, Lambda is the better product — and no price we could set would change that.
AWS shipped Lambda MicroVMs for exactly the workload classic functions can't serve: long-running, stateful, isolated. You set memory; CPU comes in a fixed 2:1 memory-to-CPU ratio, billed per second on the baseline while the microVM is alive. That is the same shape we sell, so it compares cleanly.
| Shape | Containarium box | Lambda MicroVM | Difference |
|---|---|---|---|
| 2 GiB | $14.60 / mo | $92.05 / mo | 6.3× |
| 4 GiB | $29.20 / mo | $184.11 / mo | 6.3× |
| 8 GiB | $58.40 / mo | $368.21 / mo | 6.3× |
| 16 GiB | $116.80 / mo | $736.42 / mo | 6.3× |
Lambda MicroVM figures computed from AWS's published rates — $0.0000276944 per vCPU-second and $0.0000036667 per GB-second, ARM/Graviton, US East (N. Virginia), read 19 August 2026, at 730 hours per month, with vCPU derived from AWS's stated 2:1 memory-to-CPU ratio. x86 rates run higher, so this is the conservative comparison. AWS changes prices — check their page against ours. Containarium figures are preview pricing; see the dashboard for current rates.
One box, nobody cares — the difference is a rounding error and you should pick on fit, not price. The gap only becomes a real number when you run many environments, which is the shape we're built for. Twenty-five developers, one 4 GiB sandbox each, always on:
Containarium
$730 / mo
Lambda MicroVM
$4,603 / mo
You keep
$3,873 / mo
Classic on-demand Lambda functions bill only while executing. A box bills while it exists. For a 2 GB workload the break-even sits near 17% duty cycle — about four hours of execution a day, or roughly 24% once AWS's free tier is counted. Below that, Lambda is cheaper and we will tell you so. Above it, the table above applies. That threshold is the honest boundary between the two products, and it is worth knowing which side you're on before either of us quotes you anything.
| Dimension | Containarium | AWS Lambda |
|---|---|---|
| Unit | A persistent Linux box with a hostname | An invocation; a microVM baseline you size by memory |
| Max run time | Unbounded — it's a machine | 15 minutes per invocation for functions |
| Filesystem | Persistent disk, survives restarts | 512 MB ephemeral by default; not kept between invocations |
| Shell access | SSH, as root, with an MCP server in the box | None |
| Scale to zero | Opt-in auto-sleep with wake on connect | Native for on-demand functions — the model's core strength |
| Burst concurrency | Bounded by the boxes you run | Hundreds of concurrent executions in seconds |
| Self-hosting | First-class — Apache 2.0, any Linux box you own | None — AWS only |
| Portability | Same runtime on your hardware, another cloud, or hosted | A workload built for Lambda stays on Lambda |
| Best at | Fleets of long-lived isolated environments | Spiky, stateless, request-driven work |
When your workload fits inside a function: stateless, finishes well within the 15-minute limit, needs no persistent filesystem between invocations, and tolerates a cold start. Lambda is also the better answer for fan-out to hundreds of concurrent workers in seconds, and for request paths with a strict p99 budget. For those shapes Lambda is a better product than anything we could price against it, and we would rather say so than sell you the wrong thing.
You configure a baseline by setting memory, CPU is allocated in a fixed 2:1 memory-to-CPU ratio, and it bills per second with vertical scaling up to 4× baseline during spikes. It is AWS's answer to the long-running, stateful, isolated-runtime workload that classic request-driven functions cannot serve — the same shape a Containarium box serves.
It depends entirely on duty cycle. For a workload executing a few hours a day, classic on-demand functions bill only while running and are cheaper. For anything that stays up, it inverts: MicroVMs bill their baseline while alive, at roughly 6× an equivalent box on AWS public list prices. Break-even for a 2 GB workload is near 17% duty cycle.
Not on classic functions. They cap execution at 15 minutes, provide no persistent filesystem across invocations, and give you no shell. A CI job, a container build, a dev environment, or an agent sandbox that installs packages and keeps them cannot run there at any price. A Containarium box is a real Linux machine with root, a persistent disk, systemd, and SSH.
No — Lambda and Lambda MicroVMs run only on AWS, and a workload built for them does not leave. Containarium is Apache 2.0 and runs on any Linux box: your own hardware, another cloud, or on-premises, with the hosted control plane an option rather than a requirement.
Self-host the open source on your own VM, or start free on the hosted cloud.
Also comparing? vs E2B · vs Modal · vs Daytona