Softwr

File Storage · head to head

Cloudflare R2 vs Fly.io

Cloudflare R2 logo

Cloudflare R2

File Storage

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

From
Free
Free plan
Yes
Fly.io logo

Fly.io

Cloud

Deploy web applications globally

From
$29/month
Free plan
No

The short version

  • Cloudflare R2 has a free plan, then $0.015/mo; Fly.io starts at $29/mo.
  • Only Cloudflare R2 lists zero egress billing; only Fly.io lists global deployment.
  • Where Fly.io falls short: stopped machines still bill at $0.15 per GB of root filesystem a month, so a paused service is not a free one.

How do Cloudflare R2 and Fly.io differ?

Cloudflare R2 and Fly.io differ on starting price (Free against $29/month), pricing model and free tier (Yes against No). Only the attributes on which Cloudflare R2 and Fly.io actually diverge.

Attributes where Cloudflare R2 and Fly.io differ
AttributeCloudflare R2Fly.io
Starting priceFree$29/month
Pricing modelPer gigabyte stored per monthUsage-based
Free tierYesNo
PlatformsWeb, APIWeb, API, Self-hosted
CategoryFile StorageCloud

Not yet recorded: founded for Cloudflare R2.

Which features does each one have?

They share no listed features; 6 appear only for Cloudflare R2 and 20 only for Fly.io. 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 Cloudflare R2

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

Only in Fly.io

  • Global deployment
  • Docker support
  • Postgres databases
  • Redis support
  • Auto-scaling
  • Health checks
  • Backups
  • Monitoring

What is each one used for?

Fly.io is most often brought in for deploying containerised applications close to users across regions. The jobs each tool is most often brought in to do.

Cloudflare R2

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

Fly.io

  • Deploying containerised applications close to users across regionsnot Cloudflare R2
  • Running full stack apps and databases on managed machinesnot Cloudflare R2

Where do Cloudflare R2 and Fly.io fall short?

Fly.io's most cited limit: stopped machines still bill at $0.15 per GB of root filesystem a month, so a paused service is not a free one. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

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

Fly.io

  • Egress is priced by destination region, from $0.02 per GB in North America and Europe to $0.12 per GB for Africa and India, so the same traffic costs six times more depending on where users are
  • Stopped machines still bill at $0.15 per GB of root filesystem a month, so a paused service is not a free one
  • Volumes are billed on provisioned capacity rather than usage, at $0.15 per GB a month
  • Reservation discounts of 40% require paying a year up front, from $36 to $1,440
  • Fly Kubernetes is a separate $75 a month per cluster
  • Dedicated IPv4 addresses are $2 a month each

How much do Cloudflare R2 and Fly.io cost?

Cloudflare R2 has a free plan, with paid plans from $0.015/mo; Fly.io starts at $29/mo. Plan by plan below, from each vendor's own pricing page.

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

Fly.io

$29/month
  • Pay-as-You-GoOn request
    • Micro VMs and persistent storage charged by usage
    • FlyCTL CLI
    • Unlimited users and organizations
  • Serious Support$29/mo
    • Access to dedicated engineering team
    • All Pay-as-You-Go features
  • Machine Reservation BlocksOn request
    • 40% discount on machine usage
    • Requires upfront payment for savings
  • Compliance Package$99/mo
    • HIPAA compliance
    • BAAs
    • SOC2 documentation

Which should you pick?

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.

Choose Fly.io if

  • You need global deployment.
  • You work on Web, API, Self-hosted.
  • You also want docker support.

Questions people ask

Is Cloudflare R2 or Fly.io better?
It depends on the job. Cloudflare R2 fits serving a large media or asset library to the public where transfer out, not storage, is the dominant cost; Fly.io fits deploying containerised applications close to users across regions. Cloudflare R2 starts at Free and Fly.io at $29/month.
Which is cheaper, Cloudflare R2 or Fly.io?
Cloudflare R2 has a free tier; the other does not. Paid plans start at Free for Cloudflare R2 and $29/month for Fly.io.
Does Cloudflare R2 or Fly.io run on more platforms?
Cloudflare R2 runs on Web, API. Fly.io runs on Web, API, Self-hosted.
Can I use Cloudflare R2 for free?
Yes. Cloudflare R2 has a free tier, so you can try it without paying. Fly.io starts at $29/month.
What is Cloudflare R2 best used for?
Cloudflare R2 is most often used for serving a large media or asset library to the public where transfer out, not storage, is the dominant cost, hosting a container or artefact registry that thousands of ci runners pull from every day, distributing model weights or open datasets that are downloaded far more often than they are updated, moving off s3 specifically to stop paying data transfer charges on a read heavy bucket. Of those, serving a large media or asset library to the public where transfer out, not storage, is the dominant cost and hosting a container or artefact registry that thousands of ci runners pull from every day are not what Fly.io is typically brought in for.
What can Cloudflare R2 do that Fly.io cannot?
Cloudflare R2 covers Zero egress billing, S3 API compatibility, Worker binding, Jurisdictional restriction. Fly.io covers Global deployment, Docker support, Postgres databases, Redis support.

Answered from the vendors’ own pages

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.

Fly.io: Is there a free tier for Fly.io?

Fly.io does not advertise a free tier. The base plan is pay-as-you-go with usage-based pricing for Micro VMs and persistent storage. All users get FlyCTL CLI, unlimited organizations, private networking, SSO, ACLs, and scoped tokens.

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.

Fly.io: How much does Fly.io Serious Support cost?

Serious Support costs 29 USD per month and provides access to a dedicated engineering team while maintaining all pay-as-you-go features for Micro VMs and storage.

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.

Fly.io: What does Fly.io Compliance Package include?

The Compliance Package is 99 USD per month and includes HIPAA compliance, BAAs, and SOC2 documentation for organizations requiring compliance certifications.

Source
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.

Fly.io: Does Fly.io offer discounts for upfront commitment?

Yes, Fly.io offers Machine Reservation Blocks with 40% discount on machine usage. This requires upfront payment but applies savings on infrastructure costs.

Source
Share

Related pages

Other head to heads