Cloudflare Workers vs AWS Lambda: 2026 Cost Analysis

The price war between edge compute providers reshaped the math in 2026. Where Workers and Lambda each win on cost.

Cloudflare Workers vs AWS Lambda: 2026 Cost Analysis

The price war between edge compute providers has substantially reshaped the math for serverless deployments. Cloudflare Workers and AWS Lambda — the two substantial options — have substantially different cost models in 2026. Picking the wrong one for your workload costs substantial money; picking the right one saves it. This post walks through where each wins on cost.

The substantial pricing differences#

The substantial 2026 pricing models:

AWS Lambda:

  • $0.20 per 1M requests
  • $0.0000166667 per GB-second of compute
  • Substantial free tier
  • Provisioned concurrency at additional cost for cold-start mitigation
  • ARM Graviton offers ~20% cost reduction

Cloudflare Workers:

  • Standard plan: $5/month base + $0.30 per million requests
  • Bundled CPU time (50ms per request standard)
  • Workers Paid Plan: $5/month, 10M requests included
  • Workers Unbound: per-request + per-millisecond CPU time
  • No cold start ever (substantial vs Lambda)
  • Substantial geographic distribution (300+ cities)

The pricing models are different enough that direct comparison requires workload context.

Where Lambda wins on cost#

Several substantial scenarios favor Lambda:

Heavy compute per request. Lambda’s per-GB-second pricing scales with both memory and time. For requests doing substantial computation (image processing, ML inference, plus the various), Lambda can be competitive.

Existing AWS ecosystem. When your data, services, and integration are AWS, Lambda’s data-transfer and integration costs are substantially lower than alternatives.

Long-running invocations. Workers has 30-second wall-time limit (longer for some plans); Lambda goes to 15 minutes. For longer workloads, Lambda is the choice.

Substantial memory needs. Lambda goes to 10GB; Workers has substantially less memory available.

ARM Graviton workloads. ARM Lambda is substantially competitive on cost-per-compute.

Where Workers wins on cost#

Several substantial scenarios favor Workers:

High request volume, low compute. When you have substantial traffic with quick processing, Workers’ per-request pricing is substantially better than Lambda equivalent.

Geographic distribution. When you’d otherwise deploy Lambda@Edge or replicate Lambda across substantial regions, Workers single deployment with global distribution is substantially cheaper.

Cold-start sensitivity. When Lambda cold starts would push you to Provisioned Concurrency (which is expensive), Workers’ always-warm model is substantially cheaper.

Bandwidth-heavy edge workloads. When you’re serving substantial data, Cloudflare’s bandwidth pricing is substantially better than AWS egress.

API gateway replacement. When you’d otherwise use API Gateway + Lambda, Workers replaces both with substantially lower combined cost.

The latency dimension#

Beyond cost, latency matters:

Cloudflare Workers: Global edge deployment means most users hit Workers within ~50ms. No cold start. Substantial.

AWS Lambda: Regional deployment means users far from the region hit substantial latency. Cold starts add hundreds of milliseconds or more.

Lambda@Edge: Improves geographic distribution but adds substantial cost and operational complexity.

For latency-sensitive applications (under 100ms perceived latency matters), Workers’ edge advantage is substantial.

The capability differences#

The substantial capability differences in 2026:

Workers limitations:

  • Substantial memory limits (128MB standard)
  • Wall-time limits (30s on most plans)
  • JavaScript-anchored runtime (with Rust/WASM support)
  • Less direct integration with AWS services
  • Substantial recent additions: Durable Objects (state), Workers AI (inference), R2 (object storage), D1 (SQLite), Workers KV, Queues

Lambda capabilities:

  • Up to 10GB memory, 15-minute wall time
  • Many runtime languages (Node, Python, Java, Go, .NET, Ruby, custom)
  • Substantial AWS service integration
  • Provisioned concurrency for cold-start elimination
  • Substantial container support

The capability difference is substantial; not all workloads fit Workers.

The hidden costs#

Beyond direct compute pricing:

Egress. AWS egress is substantial; Cloudflare is substantially less or free.

Data transfer between services. Workers + R2 + D1 has no egress charges; Lambda + S3 + RDS has substantial.

Operational overhead. Both platforms have substantial operational costs (monitoring, deployment, plus the various) that don’t show up in compute pricing.

Migration cost. Moving from one to the other is substantial work.

The decision framework#

For most teams in 2026:

Pick Workers for:

  • High-traffic edge APIs and dynamic content
  • Geographic distribution requirements
  • Latency-sensitive applications
  • Cost-sensitive workloads with quick processing
  • New projects without strong AWS commitments

Pick Lambda for:

  • Existing AWS-anchored architectures
  • Heavy compute per request
  • Long-running invocations
  • Workloads needing substantial memory
  • Substantial AWS service integration

Consider both in hybrid — Workers for edge, Lambda for backend.

Consider alternatives — Vercel Functions, Deno Deploy, Fastly Compute@Edge, plus the various — for specific scenarios.

What we typically see at clients#

Common patterns:

Lambda by default. AWS-anchored organizations default to Lambda without serious alternative consideration.

Workers for new edge workloads. Increasingly common pattern — new projects on Workers, existing on Lambda.

Cost-driven migration. Substantial Lambda spend motivates evaluation; some migrations to Workers.

Latency-driven adoption. Latency-sensitive applications increasingly Workers.

Where pdpspectra fits#

Our cloud and platform practice supports architecture and platform selection including serverless platform choice.

Related reading: the cloud spend post, the WebAssembly server post, and the Karpenter vs Cluster Autoscaler post.


Serverless platform choice substantially affects cost. Talk to our team about your cloud architecture.