Submit feedback on
Overreliance on Lambda at Sustained Scale
We've received your feedback.
Thanks for reaching out!
Oops! Something went wrong while submitting the form.
Close
Overreliance on Lambda at Sustained Scale
Igor Bareev
Service Category
Compute
Cloud Provider
AWS
Service Name
AWS Lambda
Inefficiency Type
Suboptimal Pricing Model
Explanation

Lambda is designed for simplicity and elasticity, but its pricing model becomes expensive at scale. When a function runs frequently (e.g., millions of invocations per day) or for extended durations, the cumulative cost may exceed that of continuously running infrastructure. This is especially true for predictable workloads that don’t require the dynamic scaling Lambda provides.

Teams often continue using Lambda out of convenience or architectural inertia, without revisiting whether the workload would be more cost-effective on EC2, ECS, or EKS. This inefficiency typically hides in plain sight—functions run correctly and scale as needed, but the unit economics are no longer favorable.

Relevant Billing Model

Lambda is billed per invocation and execution duration (GB-seconds), with costs increasing linearly as usage scales. While ideal for low-to-moderate workloads with bursty or unpredictable traffic, Lambda becomes cost-inefficient at sustained high volumes. In contrast, compute services like EC2, ECS, or EKS offer lower per-unit cost when provisioned for predictable, long-running workloads—even when accounting for idle time.

Detection
  • Identify Lambda functions with consistently high invocation counts or sustained concurrency
  • Analyze total monthly execution time and aggregate GB-seconds to estimate spend
  • Compare Lambda spend against equivalent cost modeling for EC2, ECS, or EKS
  • Determine whether the workload pattern is predictable and steady enough to justify reserved or container-based compute
  • Assess whether cold start latency or fine-grained autoscaling is still required
  • Review whether any past evaluations have been made regarding migration to alternative architectures
Remediation
  • Establish thresholds for Lambda usage that trigger cost-efficiency reviews
  • Evaluate total Lambda cost versus equivalent EC2/ECS/EKS workloads
  • Consider replatforming long-running or consistently triggered workloads to containerized or instance-based compute
  • Incorporate architecture re-evaluation into regular FinOps or infrastructure reviews for high-throughput functions
Submit Feedback