AWS Builder Center
AWS Fargate vs Google Cloud Run: Which Serverless Container Platform Should You Choose?

AWS Fargate vs Google Cloud Run: Which Serverless Container Platform Should You Choose?

You have a Docker image and you don’t want to manage servers. This article compares AWS Fargate (on ECS) and Google Cloud Run on setup, scaling, networking, cost, and best use cases, so you can pick the right one.

Aspiring Devops , Cloud And Mlops | B.E in Gujrat Technological University

Introduction

Containers are the standard way to ship applications, but running them still raises one question: who manages the servers? Both AWS Fargate and Google Cloud Run answer “not you.” They work quite differently, though. I work mostly with AWS (ECS, ECR, CI/CD pipelines), so I looked at how Fargate compares with its closest competitor on another cloud.

What is AWS Fargate?

Fargate is a serverless compute engine for containers. It works with Amazon ECS and Amazon EKS. You define a task (image, CPU, memory, networking, IAM role), and AWS runs it without any EC2 instances for you to patch or scale.
Strengths
  • Deep integration with the AWS ecosystem (VPC, ALB/NLB, IAM task roles, CloudWatch, Secrets Manager)
  • Supports long-running services, background workers, and batch tasks
  • Fargate Spot gives discounted capacity for fault-tolerant workloads
  • Works with ECS and EKS, so you can grow into Kubernetes later

What is Google Cloud Run?

Cloud Run runs stateless containers that respond to HTTP requests or events. You deploy an image (or source code) and get an HTTPS URL almost immediately. Instances scale automatically, including down to zero.
Strengths
  • Very fast to get started: one command to deploy
  • Scale-to-zero means you pay nothing when idle
  • Built-in revisions and traffic splitting for canary releases
  • A single instance can handle many concurrent requests

Side-by-Side Comparison

Feature
AWS Fargate (ECS)
Google Cloud Run
Setup effort
Higher (cluster, task definition, service, networking)
Very low (deploy an image, get a URL)
Scale to zero
Not by default (you set desired task count)
Yes, built in
Scaling model
Task-based, via Application Auto Scaling
Request/concurrency-based
Billing
vCPU and memory per second while tasks run
Per usage while handling requests (or instance-based billing)
Networking control
Excellent (VPC, security groups, private subnets)
Good (VPC connectors, ingress controls)
Long-running workloads
Excellent
Possible, but best for request-driven apps
Ecosystem fit
Best inside AWS
Best inside Google Cloud
Learning curve
Moderate
Gentle

Cost Thinking

  • Spiky or low traffic: Cloud Run’s scale-to-zero is hard to beat.
  • Steady, always-on workloads: Fargate (especially with Savings Plans or Spot) can be more predictable and cost-effective.
Pricing changes often, so check the official pricing pages for current numbers before deciding.

When to Choose Which

Choose AWS Fargate if:
  • Your stack is already on AWS (RDS, ElastiCache, SQS, etc.)
  • You need fine-grained network and security control
  • You run microservices with ALB routing, workers, or scheduled jobs
  • You want a CI/CD pipeline with GitHub Actions → ECR → ECS
Choose Cloud Run if:
  • You want the fastest path from container to public URL
  • Your traffic is unpredictable or often idle
  • You’re building APIs, webhooks, or lightweight web apps

My Takeaway

Neither is “better” overall. Cloud Run optimizes for simplicity and idle cost; Fargate optimizes for control and integration. If your data, identity, and networking already live in AWS, Fargate is the natural choice. If you’re prototyping or want zero-ops HTTP services, Cloud Run is very attractive.

Conclusion

Pick the platform that fits your workload and your ecosystem, not the one with the most hype. Both remove server management and let you focus on your application.
💬 Which one do you use in production, and why? Share your experience in the comments, and like this article if it helped you decide!
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article