← Heraldware
AWSvsRailway

TL;DR

AWS sells cloud infrastructure by the instance: an EC2 t3.medium with 2 vCPU and 4 GiB is $0.0416 an hour on-demand in us-east-1, and a t3a.medium is $0.0376, with 100 GB of monthly data transfer out included across services. Railway sells application hosting by the second: Free runs $0 then $1 a month, Hobby is a $5 monthly minimum and Pro a $20 minimum, with CPU at $0.00000772 per vCPU-second, memory at $0.00000386 per GB-second and egress at $0.05 per GB. AWS gives you the whole cloud and the responsibility that comes with it; Railway gives you a deployment target that scales down to zero cost when idle.

Railway bills for what an application actually consumes. The free tier runs $0 and then $1 a month, capped at 1 vCPU and 0.5 GB of RAM per service with 0.5 GB of volume storage. Hobby is a $5 monthly minimum that includes $5 of usage credit, and Pro is a $20 minimum with a $20 credit. Past the credit, usage is metered by the second: CPU at $0.00000772 per vCPU-second, memory at $0.00000386 per GB-second, volumes at $0.00000006 per GB-second and egress at $0.05 per GB, with object storage at $0.015 per GB-month.

The practical difference is the surface area you operate. AWS exposes hundreds of services and hands you the configuration: instances, security groups, subnets, scaling policies and the monitoring to know whether any of it is right. Railway exposes a deployment target: push code, get a running service, pay for the seconds it runs. That convenience is the product, and it costs more per unit of compute than raw EC2 while saving the operational work that raw EC2 requires.

Pros & cons

👍 AWS Pros

  • EC2 t3.medium is $0.0416 an hour on-demand in us-east-1, with t3a.medium at $0.0376
  • 100 GB of data transfer out a month is included across services and regions
  • Data transfer in is free
  • The full service catalog covers databases, queues, monitoring and more
  • Reserved and savings-plan options reduce the on-demand rate further

👎 AWS Cons

  • The hourly instance price is only the start; storage, load balancing and data transfer add separate charges
  • Operating it requires configuring networks, security groups and scaling
  • Costs do not drop to zero when an app is idle, since instances are provisioned
  • The pricing surface is large, so forecasting real cost takes effort
  • Support plans are an additional line item

👍 Railway Pros

  • Free tier runs $0 and then $1 a month within its resource caps
  • Hobby at $5 and Pro at $20 a month include matching usage credit
  • CPU and memory are billed by the second, so cost tracks actual consumption
  • Egress is a published $0.05 per GB with object storage at $0.015 per GB-month
  • Deployment is the product; infrastructure configuration is handled

👎 Railway Cons

  • Per-second compute rates are higher than provisioned EC2 for steady workloads
  • The $5 and $20 minimums are floors, so idle apps still bill
  • Resource ceilings on the free and hobby tiers limit heavier services
  • Less control over networking, regions and low-level configuration
  • Fewer managed service options than a full cloud catalog

Side by side

FeatureAWSRailway
Free tierFree tier services with time or usage limitsFree plan at $0 then $1 a month within caps
Entry paid planEC2 t3.medium at $0.0416 an hour on-demandHobby at $5 monthly minimum with $5 usage credit
Upper tierInstance family and size of your choosingPro at $20 monthly minimum with $20 usage credit
Billing unitProvisioned hours and service usagePer-second CPU, memory, volumes and egress
Compute ratet3.medium $0.0416, t3a.medium $0.0376 per hourCPU $0.00000772 per vCPU-second
Memory rateIncluded in the instance priceMemory $0.00000386 per GB-second
Data transfer out100 GB a month included, then meteredEgress $0.05 per GB
StorageEBS volumes billed per GB-monthVolumes $0.00000006 per GB-second; object storage $0.015 per GB-month
Idle costContinues while instances are provisionedDrops to the plan minimum when idle
Operating modelYou configure the infrastructureDeployment target with configuration handled

Verdict

Pick AWS if

Choose AWS if you need the whole cloud

AWS is the pick when the application needs managed databases, queues, load balancers, edge network and regional control that a single hosting platform cannot supply. The instance rates are lower, t3.medium at $0.0416 an hour, and the included 100 GB of monthly data transfer out is generous. It is the cheaper per unit of compute and the more expensive per hour of engineering time, so the trade is explicit.

Pick Railway if

Choose Railway if you want to skip the infrastructure

Railway is the pick for a team that wants to deploy an app without operating a cloud. The $5 and $20 minimums include matching usage credit, and billing by the second means cost follows consumption rather than provisioned capacity. It costs more per unit of compute than EC2, and the free and hobby tiers cap resources, but the operational work it removes is the reason to pay.

What the vendors say, and what we did not measure

Who Should Use Which?

Use AWS if you...

  • your application needs managed databases, queues and load balancing
  • you want the lowest compute rate and can absorb the operational cost
  • you need specific regions, networking or compliance controls
  • you run steady workloads that benefit from provisioned capacity

Use Railway if you...

  • you want to deploy an application without configuring infrastructure
  • your traffic is spiky and you want cost to follow actual usage
  • you value a small service catalog over a large one
  • the $5 or $20 monthly minimum is acceptable for the work it removes

FAQ

Is Railway built on AWS?

Railway runs workloads on cloud infrastructure and layers a platform on top. You are paying for that platform's deployment and metering, which is why its per-second rates sit above raw EC2 prices.

Which is cheaper for a small app?

For a small, always-on app, Railway's Hobby tier at $5 a month with $5 of included credit can be cheaper than a provisioned instance. For a busy steady workload, EC2's $0.0416 an hour for a t3.medium usually works out lower.

What does AWS cost beyond the instance?

Storage, load balancing, data transfer above the included 100 GB a month, and any additional services such as managed databases or monitoring. The instance hour is one line among several.

How does Railway charge for usage?

By the second: CPU at $0.00000772 per vCPU-second, memory at $0.00000386 per GB-second, volumes at $0.00000006 per GB-second and egress at $0.05 per GB, applied after the monthly usage credit.

Can Railway scale like AWS?

Within its model, yes, with replicas and larger resource allocations. It does not expose the breadth of AWS services or the same low-level networking control, which is the trade for the simpler operating model.

Does AWS charge when my app is idle?

Yes, if instances are provisioned, they bill by the hour regardless of traffic. Railway's model bills for consumption, so an idle service drops to the plan minimum.

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: aws.amazon.com, railway.app