Cloudflare vs Fly.io: pricing compared
The same workloads priced on Cloudflare and Fly.io with the cheapest plan that fits on each. Cloudflare is cheaper in 6 of 10 scenarios. Prices come from each provider's published, dated price sheet - see the Cloudflare price sheet and the Fly.io price sheet.
Monthly cost by workload
| Workload | Cloudflare | Fly.io | Cheaper |
|---|---|---|---|
| Small app (1M req/mo) | $8.90 | $10.61 * | Cloudflare (16% less) |
| Growing (20M req/mo) | $97.50 * | $301 * | Cloudflare (68% less) |
| At scale (200M req/mo) | $1,088 * | $1,017 * | Fly.io (6% less) |
| Modern SaaS Starter | $5.20 | $7.11 * | Cloudflare (27% less) |
| Video Streaming App | $142 * | $138 * | Fly.io (3% less) |
| High-Scale E-Commerce | $173 * | $902 * | Cloudflare (81% less) |
| Serverless Mobile Backend | $27.25 | $16.34 * | Fly.io (40% less) |
| AI RAG Chatbot | $984 | $985 * | Cloudflare (0% less) |
| Big Data Pipeline | $79.18 | $62.34 | Fly.io (21% less) |
| Budget Web Hosting | $5.00 * | $6.49 | Cloudflare (23% less) |
* The plan prices every piece but something is too small for the workload, a compute style is substituted, or a requested piece is unavailable on that provider.
Where the money goes - Growing (20M req/mo)
20M requests/mo · 40 ms CPU each · 100 GB database · 200 GB files · 1 TB egress. Cloudflare uses Workers, R2 Storage, D1; Fly.io uses Machines, Tigris Storage, Postgres, Networking.
| Cost category | Cloudflare | Fly.io |
|---|---|---|
| Serverless | $23.40 | $0.00 |
| Storage | $2.85 | $3.90 |
| Database | $71.25 | $266 |
| Compute | $0.00 | $10.22 |
| Networking | $0.00 | $20.00 |
| Total | $97.50 | $301 |
Service by service
Each provider's cheapest product per service at the Growing (20M req/mo) workload.
| Service | Cloudflare | Fly.io |
|---|---|---|
| SQL database | Cloudflare D1 (serverless SQL, SQLite-based) $71.25 | Fly Postgres (self-managed, performance-8x, 16GB node) $266 |
| NoSQL database | Cloudflare Workers KV (Paid plan rates) $94.50 | Not offered |
| Serverless functions | Cloudflare Workers $23.40 | Not offered |
| Containers | Cloudflare Containers (lite: 1/16 vCPU, 256 MiB; Workers Paid plan) $28.33 | Fly Machines (shared-cpu-1x, 256MB) $10.22 |
| Virtual machines | Not offered | Fly Machines (shared-cpu-1x, 256MB) $10.22 |
| Object storage | Cloudflare R2 Storage $2.85 | Tigris Object Storage $3.90 |
| Message queues | Cloudflare Queues $7.60 | Not offered |
| CDN | Cloudflare CDN (included on every plan) $0.00 | Not offered |
Plug in your traffic, database and cache needs to see Cloudflare, Fly.io and 14 other providers side by side.
Price your own stack