Comparison

Containarium vs AWS Lambda

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.

Choose Containarium when…

  • You run many long-lived isolated environments — per-developer sandboxes, preview environments, per-customer isolation, CI fleets.
  • The workload needs a real machine: root, a persistent filesystem, systemd, Docker, SSH, a process that stays up.
  • The compute is yours already — your own hardware, another cloud, on-prem, a datacenter you've already paid for.
  • You need portability — Apache 2.0, runs on any Linux box, and the workload can leave.

Choose AWS Lambda when…

  • Your workload fits inside a function — stateless, well under the 15-minute limit, no filesystem to keep.
  • You need to fan out to hundreds of concurrent workers in seconds. We would need those boxes provisioned; Lambda would not.
  • A request path has a strict p99 budget. Lambda's cold start is sub-second; our wake-from-idle is seconds.
  • Your duty cycle is genuinely low — a few hours a day of execution and nothing in between.

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.

If it needs a machine, here's the math

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.

Where it actually bites: fleets

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

And where it doesn't: low duty cycle

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.

Side-by-side

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

FAQ

When should I use AWS Lambda instead of Containarium?

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.

What are AWS Lambda MicroVMs?

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.

Is AWS Lambda cheaper than Containarium?

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.

Can I run Docker, a long build, or SSH on AWS Lambda?

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.

Can I self-host AWS Lambda?

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.

Still needs a machine?

Self-host the open source on your own VM, or start free on the hosted cloud.

Also comparing? vs E2B · vs Modal · vs Daytona