Softwr

Cloud · head to head

Lambda (AWS Serverless) vs Cloudflare R2

Lambda (AWS Serverless) logo

Lambda (AWS Serverless)

Cloud

Run code without thinking about servers

From
Free
Free plan
Yes
Cloudflare R2 logo

Cloudflare R2

File Storage

S3-compatible object storage that charges nothing for egress to the internet

From
Free
Free plan
Yes

The short version

  • Lambda (AWS Serverless) is free; Cloudflare R2 starts at $0.015/mo.
  • Only Lambda (AWS Serverless) lists event-driven execution; only Cloudflare R2 lists zero egress billing.
  • Where Lambda (AWS Serverless) falls short: provisioned concurrency, used to avoid cold starts, is charged separately at $0.0000041667 per GB-second whether or not the function runs.
  • Prices and features on this page were last checked on 20 November 2026.

How do Lambda (AWS Serverless) and Cloudflare R2 differ?

Lambda (AWS Serverless) and Cloudflare R2 differ on pricing model and category (Cloud against File Storage). Only the attributes on which Lambda (AWS Serverless) and Cloudflare R2 actually diverge.

Attributes where Lambda (AWS Serverless) and Cloudflare R2 differ
AttributeLambda (AWS Serverless)Cloudflare R2
Pricing modelUsage-basedPer gigabyte stored per month
CategoryCloudFile Storage

Identical on both: starting price (Free), free tier (Yes), platforms (Web, API).

Not yet recorded: founded for Cloudflare R2.

Which features does each one have?

They share no listed features; 20 appear only for Lambda (AWS Serverless) and 6 only for Cloudflare R2. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Lambda (AWS Serverless)

  • Function-as-a-Service
  • Event-driven execution
  • Auto-scaling
  • Pay-per-use
  • Multiple languages
  • Concurrency limits
  • Dead Letter Queues
  • Environment variables

Only in Cloudflare R2

  • Zero egress billing
  • S3 API compatibility
  • Worker binding
  • Jurisdictional restriction
  • Infrequent Access tier
  • Custom domain serving

What is each one used for?

Lambda (AWS Serverless) is most often brought in for event-driven functions without managing servers. The jobs each tool is most often brought in to do.

Lambda (AWS Serverless)

  • Event-driven functions without managing serversnot Cloudflare R2
  • API backends behind API Gatewaynot Cloudflare R2
  • Processing S3, DynamoDB, SQS and Kinesis eventsnot Cloudflare R2
  • Scheduled jobs without a always-on instancenot Cloudflare R2
  • Edge compute through Lambda@Edgenot Cloudflare R2

Cloudflare R2

  • Serving a large media or asset library to the public where transfer out, not storage, is the dominant costnot Lambda (AWS Serverless)
  • Hosting a container or artefact registry that thousands of CI runners pull from every daynot Lambda (AWS Serverless)
  • Distributing model weights or open datasets that are downloaded far more often than they are updatednot Lambda (AWS Serverless)
  • Moving off S3 specifically to stop paying data transfer charges on a read heavy bucketnot Lambda (AWS Serverless)

Where do Lambda (AWS Serverless) and Cloudflare R2 fall short?

Lambda (AWS Serverless)'s most cited limit: ephemeral storage beyond the included 512 MB is metered. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Lambda (AWS Serverless)

  • Billed on two axes at once, $0.20 per million requests plus $0.0000166667 per GB-second of duration, so memory settings change the bill as much as traffic does
  • Provisioned concurrency, used to avoid cold starts, is charged separately at $0.0000041667 per GB-second whether or not the function runs
  • Ephemeral storage beyond the included 512 MB is metered
  • Lambda@Edge costs $0.60 per million requests, three times the standard request rate
  • VPC use and cross-region data transfer carry EC2 charges on top

Cloudflare R2

  • There is no archive tier below Infrequent Access, so genuinely cold data costs roughly ten to fifteen times what it would cost in a deep archive class and there is nowhere cheaper to lifecycle it to
  • Class A operations are billed at 4.50 USD per million, so a workload that writes millions of small objects can spend more on operations than on the storage those objects occupy
  • Infrequent Access carries both a retrieval fee and a thirty day minimum storage duration, so data that is deleted or re-read sooner ends up more expensive than if it had stayed on Standard
  • You choose a location hint rather than a region, so you cannot prove to an auditor which datacentre holds an object unless you use a jurisdiction restricted bucket, and jurisdictions are limited
  • Support level follows your Cloudflare account plan rather than the storage spend, so a team on a low tier account gets ticket support with no storage specific SLA, and an R2 incident is a Cloudflare incident you cannot fail over from because the free egress only exists inside Cloudflare

How much do Lambda (AWS Serverless) and Cloudflare R2 cost?

Lambda (AWS Serverless) is free to use; Cloudflare R2 has a free plan, with paid plans from $0.015/mo. Plan by plan below, from each vendor's own pricing page.

Lambda (AWS Serverless)

Free
  • Free TierFree
    • 1M free requests/month
    • 400,000 GB-seconds/month
    • Always free

Cloudflare R2

Free
  • Free tierFree
    • 10 GB stored per month
    • 1 million Class A operations
    • 10 million Class B operations
  • Standard$0.015/mo
    • Per gigabyte stored per month
    • 4.50 USD per million Class A operations
    • 0.36 USD per million Class B operations
  • Infrequent Access$0.01/mo
    • Per gigabyte stored per month
    • Per gigabyte data retrieval fee
    • Thirty day minimum storage duration

Which should you pick?

Choose Lambda (AWS Serverless) if

  • You need function-as-a-service.
  • You want to start without paying.
  • You work on Web, API.
  • You also want event-driven execution.

Choose Cloudflare R2 if

  • You need zero egress billing.
  • You want to start without paying.
  • You work on Web, API.
  • You also want s3 api compatibility.

Questions people ask

Is Lambda (AWS Serverless) or Cloudflare R2 better?
Neither clearly leads. Lambda (AWS Serverless) starts at Free and Cloudflare R2 at Free, and user ratings are close enough to be indistinguishable. Choose on capability and platform support.
Which is cheaper, Lambda (AWS Serverless) or Cloudflare R2?
Lambda (AWS Serverless) starts at Free and Cloudflare R2 at Free.
Does Lambda (AWS Serverless) or Cloudflare R2 run on more platforms?
Both run on Web, API, so platform support will not decide this one for you.
Can I use Lambda (AWS Serverless) for free?
Both have a free tier, so you can try either at no cost before committing.
What is Lambda (AWS Serverless) best used for?
Lambda (AWS Serverless) is most often used for event-driven functions without managing servers, api backends behind api gateway, processing s3, dynamodb, sqs and kinesis events, scheduled jobs without a always-on instance. Of those, event-driven functions without managing servers and api backends behind api gateway are not what Cloudflare R2 is typically brought in for.
What can Lambda (AWS Serverless) do that Cloudflare R2 cannot?
Lambda (AWS Serverless) covers Function-as-a-Service, Event-driven execution, Auto-scaling, Pay-per-use. Cloudflare R2 covers Zero egress billing, S3 API compatibility, Worker binding, Jurisdictional restriction.

Answered from the vendors’ own pages

Lambda (AWS Serverless): Is there a free tier for AWS Lambda?

Yes. AWS Lambda offers a free tier including 1 million requests per month, 400,000 GB-seconds per month, and 100 GB monthly response streaming.

Source
Cloudflare R2: Is egress really free, with no hidden transfer charge?

Yes for data served out of R2 to the internet. You still pay per operation for the requests that serve it, and if you pull data into R2 from another provider you pay that provider the egress on the way in.

Lambda (AWS Serverless): How is AWS Lambda charged?

Lambda charges $0.20 per million requests. Duration charges are $0.0000166667 per GB-second for x86 (up to 6 billion GB-seconds/month in US East Ohio with tiered pricing). Ephemeral storage over the included 512 MB costs $0.0000000309 per GB-second. Provisioned Concurrency costs $0.0000041667 per GB-second with a 5-minute minimum.

Source
Cloudflare R2: How does the total cost compare with S3 for a public download bucket?

Storage is more expensive per terabyte than S3 Infrequent Access, but S3 charges roughly 90 USD per terabyte served. Any bucket that serves more than about a fifth of its stored volume each month is cheaper on R2.

Lambda (AWS Serverless): What are Lambda Durable Functions pricing?

Lambda Durable Functions include operations at $8.00 per million (start execution, steps, waits). Data written costs $0.25 per GB. Data retention is $0.15 per GB-month with configurable 1-90 day retention (default 14 days).

Source
Cloudflare R2: Can I use R2 without using the rest of Cloudflare?

Yes, it works through the plain S3 API from anywhere. You lose the Worker binding and the free CDN caching in front of it, which is where a lot of the practical benefit sits.

Cloudflare R2: Does R2 have a cold archive class like Glacier?

No. Infrequent Access is the coldest tier, at two thirds of the Standard rate plus retrieval fees.

Share

Related pages

Other head to heads