← Heraldware
CloudflarevsRailway

TL;DR

Cloudflare sells a network with compute attached: DNS, CDN, WAF, Workers and Containers on plans priced at $0, $20 and $200 a month billed annually, plus per-request charges for Functions. Railway sells compute with a visual canvas: a $5 Hobby floor and a $20 Pro floor, then per-second billing for CPU, memory and volumes and $0.05 per GB of egress. Buy Cloudflare when the audience is the internet at large and latency, caching and protection matter; buy Railway when you want a service or database running without touching network plumbing.

Cloudflare's pricing page runs a Free plan at $0 for personal or hobby projects, Pro at $20 per month billed annually ($25 paid monthly), Business at $200 per month billed annually ($250 monthly), and a Contract tier for mission-critical applications. The compute layer is priced underneath that: Functions charge $0.30 per million requests above a free allowance of 100,000 requests a day, with CPU time at $0.02 per million CPU-milliseconds. Containers charge for what runs: memory at $0.0000025 per GiB-second, CPU at $0.000020 per vCPU-second, disk at $0.00000007 per GB-second, and egress in North America and Europe with the first terabyte included and $0.025 per GB after it. The security side has its own meter, with the SSE product free for teams under 50 users and $7 per user per month above that.

Railway has no plan ladder in the usual sense. Its pricing page lists Free at $0, introduced with a 30-day trial carrying $5 of credits, Hobby at a $5 minimum that includes $5 of monthly usage credits, and Pro at a $20 minimum that includes $20 of credits. Everything above the floor is metered: memory at $0.00000386 per GB-second, CPU at $0.00000772 per vCPU-second, volumes at $0.00000006 per GB-second and egress at $0.05 per GB for services, with object storage at $0.015 per GB-month and free egress. Isolated Linux machines for agents carry their own rates, about $50 per GB-month and about $50 per vCPU-month while running, and a service can scale to 50 replicas at up to 48 vCPU and 48 GB each before sales gets involved.

Pros & cons

👍 Cloudflare Pros

  • Free plan covers hobby projects at $0, including 100,000 requests a day for Functions
  • Pro at $20 per month billed annually bundles CDN, DNS, WAF and certificate handling with the compute
  • Global edge placement puts compute near the visitor instead of in one home region
  • Per-request pricing makes small, bursty workloads cheap to run

👎 Cloudflare Cons

  • Bills split into a plan fee plus usage: $0.30 per million requests and $0.02 per million CPU-milliseconds on Functions
  • Business jumps to $200 per month billed annually, a tenfold step from Pro
  • Stateful services such as databases need separate products and separate line items
  • The security suite above 50 users is charged at $7 per user per month

👍 Railway Pros

  • One canvas runs services, jobs, databases and agents without network configuration
  • Pro's $20 floor comes with $20 of usage credits, so a quiet month can cost the floor and nothing more
  • Per-second billing on CPU, memory and volumes rewards right-sized instances over padded ones
  • Object storage bills $0.015 per GB-month with free egress

👎 Railway Cons

  • There is no flat plan: a busy service passes the $20 or $5 floors quickly
  • Egress is $0.05 per GB, which shows up on media-heavy or high-traffic workloads
  • No CDN, WAF or DNS protection layer comes with the compute
  • A trial that carries $5 of credits over 30 days means the first real invoice arrives early

Side by side

FeatureCloudflareRailway
Free tierFree: $0, hobby projects, 100,000 Function requests a dayFree: $0, with a 30-day trial carrying $5 of usage credits
Entry paid planPro: $20/month billed annually, $25 paid monthlyHobby: $5 minimum usage, including $5 of monthly credits
Mid tierBusiness: $200/month billed annually, $250 paid monthlyPro: $20 minimum usage, including $20 of monthly credits
EnterpriseContract tier quoted for mission-critical applicationsContact sales above 50 replicas per service at 48 vCPU and 48 GB
Compute pricingFunctions: $0.30 per million requests, $0.02 per million CPU-ms; Containers: $0.0000025 per GiB-second memory, $0.000020 per vCPU-secondMemory $0.00000386 per GB-second, CPU $0.00000772 per vCPU-second, volumes $0.00000006 per GB-second
Egress1 TB included in North America and Europe on Containers, then $0.025 per GB$0.05 per GB for services; object storage $0.015 per GB-month with free egress
StorageObject and KV products billed as separate line itemsVolumes billed per GB-second, object storage billed per GB-month
Network servicesDNS, CDN, WAF and certificate handling included in the planManaged networking, private services and previews built into the platform
PlatformEdge network with dashboards, API and Terraform supportWeb console with a visual canvas, CLI, API and GitHub deploys
Offline modeNot a concept for a hosted network serviceNot a concept for a hosted compute service
Billing notePlan fee plus metered usage on computeUsage floor plus metered seconds, no plan fee above the floor

Verdict

Pick Cloudflare if

Pick Cloudflare when the audience is everyone

Sites and APIs that face the open internet get caching, WAF rules, DNS and certificate handling wrapped around the code for $20 a month billed annually on Pro, with Functions priced at $0.30 per million requests. It is the choice when traffic is public, spiky and geographically spread, and when protection is part of the requirement rather than an add-on.

Pick Railway if

Pick Railway when the work is a service

Backends, workers, staging environments and agent sandboxes run on per-second billing with a $20 floor that includes matching credits, and the canvas replaces a lot of configuration. It is the choice when you want to deploy a container or a database tonight and do not need a content network in front of it.

What the vendors say, and what we did not measure

Cloudflare: vendor-published claims

  • Cloudflare's homepage states its network powers 20% of the internet

Railway: vendor-published claims

  • Railway's pricing page states that it charges only for what your app uses, with usage billed by the second

We collected no independent reviews for this pairing: every number here comes from cloudflare.com and railway.app pricing pages, and the cards hold vendor-published statements rather than measured user opinion.

Who Should Use Which?

Use Cloudflare if you...

  • Best for public websites and APIs that need caching, DDoS protection and TLS without a separate vendor
  • When the workload is request-shaped: many small invocations rather than long-running processes
  • When running close to the visitor matters more than running close to a database

Use Railway if you...

  • Best for long-running services where per-second CPU and memory are the honest unit of cost
  • When you want preview environments, a visual canvas and GitHub deploys with no pipeline to write
  • When a database and its backend should sit on one private network

FAQ

Can Railway replace Cloudflare?

Railway will run the service and expose it publicly, but it does not ship a CDN, a WAF or a DNS network. Teams that need edge caching and bot protection still buy those from Cloudflare or an equivalent, even when the application itself runs on Railway.

Can Cloudflare replace Railway?

Cloudflare's Functions and Containers can run code and containerised workloads, priced per request and per second of CPU. What it does not hand you is Railway's one-canvas view of services, volumes, private networking and managed databases, which is where Railway's floor of $20 a month with matching credits is aimed.

Which one is cheaper for a side project?

At the bottom, Cloudflare's Free plan costs $0 and includes 100,000 Function requests a day, while Railway opens with a 30-day trial carrying $5 of credits and then a $5 Hobby floor. For a small static site with light compute, the free network tier usually wins; for a small container or database, Railway's floor is the cheaper path.

How does each one charge for bandwidth?

Railway charges $0.05 per GB of egress for services and $0.015 per GB-month for object storage with free egress. Cloudflare's Containers include the first terabyte in North America and Europe at $0.025 per GB after it, while the CDN and caching products are covered by the plan fee.

Do I need to understand networking to use either?

Not for Railway: services, volumes and private links are drawn on a canvas and the platform handles certificates and routing. Cloudflare assumes you are configuring zones, rules and caches, which is powerful but means the DNS and security setup is your job.

Spot an outdated price or feature? Let us know and we'll verify it.

Heraldware analysis engine

reviewed · data sourced from official product pages · sources: cloudflare.com, railway.app