Sustained HTTP / API traffic
Steady traffic; multi-concurrency improves utilisation and latency predictability.
Deeper comparison, economics, and integrations are consolidated here so LMI fundamentals articles stay concise. Account and local tooling live under Foundations and Prerequisites. Step-by-step apply procedures will ship under Walkthrough; this page stays conceptual until those batches exist.
| Dimension | Lambda (default) | LMI |
|---|---|---|
| Concurrency | One execution environment handles at most one invocation at a time | Multi-concurrent invocations per environment — strong fit for IO-heavy work (AWS) |
| Tenancy | Multi-tenant, Firecracker microVMs on Shared Lambda infrastructure | Your account, Nitro EC2, containers; capacity provider as security boundary |
| Pricing | Per-request duration | EC2-style instance cost + 15% management fee |
| Scaling | Cold starts possible; scales to zero | CPU-based, asynchronous; no cold starts in the default-Lambda sense; baseline capacity per AWS docs |
| Best for | Bursty / intermittent / scale-to-zero wins | Sustained, predictable throughput; EC2 pricing / hardware flexibility |
You declare requirements (for example x86_64 vs arm64); Lambda picks a current-generation instance. A family-level summary (C / M / R × architecture, minimum size, and allow/exclude overrides) lives under Placement & capacity — Supported instance families. See Lambda Managed Instances and the pricing page for your region.
Lambda capacity provider └── instance requirements ├── architecture: x86_64 ──▶ Intel/AMD current-gen └── architecture: arm64 ──▶ Graviton (e.g. Graviton4 where available)| Component | Calculation |
|---|---|
| Instance cost | EC2 On-Demand or discounted (Savings Plans / RIs on compute, not the fee) |
| Management fee | 15% on top of EC2 instance cost |
| Granularity | EC2 hourly — not per-100 ms like default Lambda |
| Minimum cost | Baseline capacity is always on — zero traffic is not zero bill |
LMI supports the same event sources as default Lambda (AWS).
| Integration | Notes |
|---|---|
| S3 | Object notifications and batch patterns |
| SQS | High throughput benefits from multi-concurrency per environment |
| API Gateway / ALB | Steady HTTP traffic — fewer latency spikes vs cold-start-heavy setups |
| SNS / EventBridge / Kinesis | Same integration model as default Lambda |
capacity_provider_config is immutable after first function create.Sustained HTTP / API traffic
Steady traffic; multi-concurrency improves utilisation and latency predictability.
High-throughput queues
Many in-flight messages per execution environment without provisioning large reserved concurrency on default Lambda.
VPC-bound workloads
Instances already in your VPC — avoids classic VPC-Lambda ENI cold-start behaviour.
Continuous log or data processing
Sustained, event-driven pipelines where hourly EC2 + fee beats per-invocation pricing.
Sporadic / low volume
Idle baseline cost dominates — default Lambda scale-to-zero is usually cheaper.
Short unpredictable bursts
Fast scale-to-zero and on-demand environments often fit better than async CPU scaling.
Names are illustrative — this is a checklist of what you wire together, not a tutorial. capacity_provider_config on the function is immutable after first create (AWS). Use the AWS API, console, or your own automation; follow Walkthrough when procedural pages publish.
x86_64 or arm64); AWS selects a current-generation instance type.AWSLambdaManagedEC2ResourceOperator).AWSLambdaBasicExecutionRole (and any data/API permissions your code needs).AWSLambdaManagedEC2ResourceOperator so Lambda can provision and lifecycle EC2 in your account.