AWS Fargate and Google Cloud Run both let you run containers without touching a server, but they are built for different jobs. Fargate is a serverless compute engine for containers inside the AWS ecosystem: you define tasks or pods and the platform provisions the compute. Cloud Run is a fully managed container platform that runs HTTP and gRPC services and scales them to zero when traffic stops. Pick the wrong one and you either overpay for idle capacity or fight a platform that was never designed for your workload.
How each service works
AWS Fargate runs containers as ECS tasks or EKS pods. You pick the CPU and memory for each task, and AWS handles the underlying hosts, patching, and placement. A task runs until you stop it or an autoscaling policy scales it down. Fargate also supports long-running processes, background workers, and anything that speaks TCP, not just HTTP.
Google Cloud Run takes a container image (or even a source directory) and gives you a public HTTPS endpoint. Requests route to container instances that start on demand and shut down when idle. Your container must listen on the PORT environment variable (default 8080), and request timeouts can stretch to 60 minutes. For background work outside request handling, an optional CPU-always-allocated mode keeps CPU available for the full container lifetime.
Head-to-head comparison
| Dimension | AWS Fargate | Google Cloud Run |
|---|---|---|
| Model | Serverless compute for ECS tasks / EKS pods | Managed container platform, Knative-based |
| Workload type | Any containerized process, including non-HTTP | HTTP/gRPC request-driven services |
| Scaling | Autoscaling policies; no default scale-to-zero | Scales to zero by default |
| Billing | Per second on requested vCPU and memory while the task runs | Per second on CPU/memory used during request processing, plus per-request fee |
| Free tier | None | Monthly quota of requests, vCPU-seconds, and memory |
| Cold starts | New tasks can take tens of seconds to start | Typically fast, often in the hundreds of milliseconds |
| Networking | Full VPC integration, security groups, IAM task roles | Built-in HTTPS; VPC connectors or direct VPC egress for private resources |
| Kubernetes | Native EKS support, standard Kubernetes | Knative API compatibility, not standard Kubernetes |
| Deploy command | ECS task definition or kubectl for EKS |
gcloud run deploy |
Scaling: scale-to-zero changes the math
This is the single biggest difference. Cloud Run creates instances when requests arrive and shuts them down to zero when traffic stops, so an internal tool that gets ten requests a day costs almost nothing. Fargate tasks keep running and billing for as long as they exist. You can set an ECS service’s desired count to zero or write aggressive scaling policies, but there is no built-in, zero-config scale-to-zero.
The flip side: Fargate’s model suits steady, predictable traffic. When your containers run at a stable level around the clock, the always-on model is simpler to reason about and often cheaper per unit of compute. Bursty or idle-heavy workloads tilt the other way.
Pricing compared
Both bill per second, but they bill for different things. Fargate charges for the vCPU and memory you request from the moment a task starts until it stops, whether or not it is doing work. Cloud Run charges CPU and memory only for the time spent processing requests, plus a small per-request fee (about $0.40 per million requests), and offers a generous monthly free tier.
Because the models differ, unit prices are not directly comparable, but third-party price comparisons (checked June 2026) show the pattern clearly: for an always-on 1 vCPU equivalent in a US region, Fargate costs roughly half of Cloud Run’s request-based billing. Cloud Run’s monthly free quota and scale-to-zero make it near-free for low-traffic services. These numbers move between regions and billing modes, so treat them as approximate and check the official AWS and Google Cloud pricing pages before deciding.
Two hidden costs deserve a mention. Fargate bills for idle capacity while a task runs, so over-provisioned task sizes quietly waste money. Cloud Run’s egress pricing applies when your containers talk to the outside world, which matters for bandwidth-heavy APIs.
Networking and security
Fargate inherits AWS’s networking model wholesale. Tasks attach to VPC subnets, security groups control traffic, and IAM task roles give each container scoped permissions to services like RDS or S3. For enterprise workloads behind private networks, this depth is the main reason teams choose Fargate.
Cloud Run is simpler and more opinionated. Services get HTTPS endpoints with automatic TLS, and traffic splits or gradual rollouts are built in. Reaching private VPC resources requires a VPC connector or direct VPC egress, which adds a step but works fine for database-backed services.
Developer experience
Cloud Run wins on speed to first deploy. One gcloud run deploy command takes an image or a source directory straight to a live URL, often in under a minute. Environment variables, secrets, and concurrency settings live in the same service definition.
Fargate asks more of you up front: a task definition, a cluster, and some understanding of ECS or EKS concepts. Tools like AWS Copilot and Terraform modules lower the learning curve, and once the pipeline exists, deployments are routine. The cost of that initial setup pays off when you already run other AWS infrastructure.
Kubernetes compatibility
If your team standardizes on Kubernetes, Fargate has the cleaner story. Fargate profiles run pods on EKS with the standard Kubernetes API, so manifests, operators, and tooling carry over unchanged. Cloud Run is built on Knative, which borrows Kubernetes concepts but is not standard Kubernetes. Moving between Cloud Run and a Kubernetes cluster means rewriting deployment manifests.
Which one should you pick?
Choose Cloud Run when your workload is request-driven with variable traffic: REST APIs, webhooks, web apps, and microservices that sit idle part of the day. The scale-to-zero model and fast deploys make it the low-friction choice, and the free tier covers side projects entirely.
Choose Fargate when you need long-running processes, background workers, or non-HTTP protocols; when you are already invested in AWS with VPC, IAM, and RDS; or when your Kubernetes workloads need a serverless option through EKS. Steady, always-on services tend to cost less per compute unit here.
A practical rule of thumb: if the workload sleeps at night, Cloud Run. If it never sleeps, Fargate.
FAQ
Is Cloud Run cheaper than AWS Fargate?
For spiky or low-traffic workloads, usually yes, thanks to scale-to-zero and a free tier. For steady, always-on containers, Fargate’s compute pricing is typically lower. The right answer depends on your traffic shape, so model both with your own numbers and current official pricing.
Does AWS Fargate scale to zero?
Not by default. Fargate tasks bill for the whole time they run. You can scale an ECS service down to zero tasks with autoscaling policies, but it requires configuration, whereas Cloud Run scales to zero out of the box.
Can Cloud Run run background jobs?
Cloud Run targets request-driven workloads, but it supports requests up to 60 minutes and a CPU-always-allocated mode for processing outside request handling. For genuinely long-running daemons or non-HTTP work, Fargate is the better fit.
Can I run the same container on both?
Yes, with one caveat. Any OCI container image can run on both platforms. The difference is in the wrapper: Cloud Run expects the container to listen on the PORT environment variable, while Fargate routes to the container port declared in the task definition.