The cost signal
Small scheduled jobs often keep an EC2 instance running all day even though the useful runtime is only minutes or seconds. CloudPrune can compare observed job runtime, memory needs, schedule frequency, root disk size, and app dependencies before suggesting a Lambda migration.
- Review method
- Read-only evidence first, followed by owner review, rollback planning, and post-change validation.
Questions people ask
When is Lambda cheaper than EC2 for scheduled work?
Lambda is often cheaper when jobs are short, infrequent, stateless, and fit within Lambda runtime, memory, storage, and networking constraints.
What data is needed for the decision?
You need job frequency, p95 and max runtime, memory needs, network dependencies, package size, stateful storage needs, and the EC2 instance cost being replaced.
What should not move first?
Avoid moving long-running, stateful, latency-sensitive, or dependency-heavy jobs until the runtime and rollback path are proven.