Serverless Containers: Cloud Run, Fargate, and ACI Compared
A practical comparison of Google Cloud Run, AWS Fargate, and Azure Container Instances across pricing, scaling, cold starts, networking, GPUs, and image security — with a decision table.
Published on • November 15, 2026
AI Assistant

All three major clouds will run your container without you managing a server — and that is where the similarity ends. Google Cloud Run, AWS Fargate, and Azure Container Instances differ substantially in how they bill, how they scale, what happens on a cold start, how networking works, whether you can attach a GPU, and how much image-security machinery they give you out of the box. This post compares the three on the dimensions that actually decide production architecture, then distills it into a decision table.
The Three Services at a Glance
Cloud Run (GCP) is a fully managed, request-driven container platform built on Knative and Kubernetes. You deploy a container image, it serves HTTP/gRPC (or consumes events), and instances scale — including to zero. Every container instance runs inside gVisor, Google’s user-space kernel sandbox, which is why Cloud Run can comfortably run untrusted workloads at density.
Fargate (AWS) is a capacity provider for ECS and EKS: you define a task or pod spec, and AWS runs it on managed infrastructure with no cluster node management. Crucially, Fargate is not scale-to-zero — a task keeps running (and billing) until you stop it. It’s “serverless compute for containers,” not “serverless scaling.”
Azure Container Instances (ACI) is the simplest of the three: you submit a container group (Azure’s pod equivalent — one or more containers sharing network/volume context) via ARM, CLI, or SDK, and it starts in seconds. ACI has no native autoscaler; scaling is layered on by Azure Container Apps, AKS Virtual Nodes, or your own logic.
Pricing Models
The billing models are structurally different, and this drives most cost surprises:
- Cloud Run — per request, with scale-to-zero. CPU and memory are billed while the instance is actively processing requests, in 100 ms increments with a minimum charge per request. Idle instances cost nothing (unless you configure
min-instancesfor warm pools). An always-charge CPU option exists for workloads that need background work between requests. For spiky or intermittent traffic, this is the cheapest model of the three by a wide margin. - Fargate — per vCPU and GiB per second, one-minute minimum. You pay for reserved vCPU and memory for as long as the task runs, with a 60-second floor. No scale-to-zero means a dev environment left running bills all night — but steady-state services get predictable, per-second-ish billing after the first minute. Fargate Spot (up to ~70% discount) handles interruptible workloads.
- ACI — per second of vCPU and GiB. Container groups bill for the resources they request while running, with per-second granularity. Like Cloud Run it’s ephemeral — stop the group and billing stops — but you’re paying for reserved vCPU/GiB, not per request.
Rule of thumb: highly spiky, request-driven traffic favors Cloud Run’s request billing; steady 24/7 services make Fargate’s model competitive; ACI sits in between and shines for burst jobs and CI runners where you start, run, and destroy.
Scaling and Cold Starts
Cloud Run scales on concurrent requests (default 80 per instance, configurable up to 1,000), autoscaling to a max instance count you set. Cold starts are typically hundreds of milliseconds for modest images — image size and language runtime dominate — and min-instances plus CPU boosting trade cost for latency.
Fargate scaling is delegated to ECS service autoscaling or K8s HPA on EKS — you configure the metrics. Cold start is the slowest of the three: a task launch involves scheduler decisions, ENI attachment, and image pull, commonly tens of seconds on first run (less with warm pools and image caching via ECR pull-through). This is why Fargate suits steady services more than event-driven bursts.
ACI starts container groups “in seconds” — fast enough for interactive provisioning, with no warm instances to manage. But since there’s no built-in autoscaler, your cold-start behavior under load depends entirely on the layer above (Container Apps, Virtual Kubelet on AKS, or your own code).
Networking
- Cloud Run historically required a Serverless VPC Access connector (an extra billed appliance); newer generations offer Direct VPC egress, giving instances VPC-internal IPs with static egress options. Ingress can be internal-only, and invokers are authenticated via IAM.
- Fargate tasks run in
awsvpcmode: each task gets its own ENI with its own private IP and security groups — clean, per-task network identity, but constrained by ENI density limits per instance. No public inbound IP unless you front it with an ALB; VPC routing and connectivity are standard AWS primitives. - ACI can join a container group to a VNet with a static private IP and an FQDN with a DNS label, plus optional public IP. Network profiles let you pin groups to subnets. It’s simpler than Kubernetes networking but less flexible — no sidecar-based service mesh integration out of the box.
GPU Options
- Cloud Run supports attaching NVIDIA GPUs (L4 class) to container instances, including scale-to-zero with GPU workloads — unusual and valuable for occasional inference jobs.
- Fargate does not support GPUs. GPU workloads on AWS go to EC2 (EKS node groups, EC2 Launch Types, or Managed Instance Groups).
- ACI supports GPU-optimized VM SKUs for container groups, letting you run CUDA containers without managing the VM — though availability varies by region and SKU.
If “serverless GPU inference that scales to zero” is the requirement, Cloud Run is the only one of the three that checks that box cleanly.
Image and Security Features
This is where the Azure documentation on container-instance security is worth reading closely, because it lays out a lifecycle approach that applies to all three clouds:
- Private registries. ACI pulls from Azure Container Registry with Microsoft Entra ID (service principal / managed identity) authentication and RBAC-scoped pull permissions. The equivalents are ECR with IAM roles and Artifact Registry/GCR with workload identity. The guidance is universal: never depend on public images for production.
- Scanning. ACR optionally integrates Microsoft Defender for Cloud, whose Qualys-based scanner automatically scans Linux images pushed to the registry, classifies vulnerabilities, and provides remediation. AWS pairs ECR basic scanning with Inspector for enhanced scanning; GCP has Artifact Analysis. Azure’s doc also notes third-party options (Aqua, Twistlock) via Marketplace.
- Approved images and registries. The doc’s advice — sanction a single lean base-image distro, permit only approved registries, enforce image signing for a chain of custody — maps to Binary Authorization (GCP), ECR immutable tags + scan-on-push policies (AWS), and ACR content-trust-style signing plus Azure Policy (ACI).
- Credentials. Keep secrets out of images; Azure Key Vault, AWS Secrets Manager, and GCP Secret Manager are the managed paths, with least-privilege RBAC around them.
- Runtime posture. Run as non-root, drop capabilities, use safe-listing for executables, segment container networks, and audit administrative access — Azure Monitor, CloudWatch/Container Insights, and Azure Monitor for Containers cover the observability side.
On top of that, each platform adds its own isolation story: Cloud Run’s gVisor sandbox per instance, Fargate’s per-task isolation on the Nitro system, ACI’s own hypervisor-isolated container hosts.
Decision Table
| Dimension | Cloud Run | Fargate | ACI |
|---|---|---|---|
| Billing | Per request (100 ms increments), scale-to-zero | Per vCPU/GiB-second, 1-min minimum, always on | Per second of vCPU/GiB, ephemeral |
| Scale-to-zero | Yes (native) | No | Effectively yes (groups are ephemeral) |
| Cold start | ~100s of ms | Tens of seconds | Seconds |
| Scaling | Built-in, request-driven | ECS/EKS autoscaling (you configure) | None built-in (layer on Container Apps/AKS) |
| Networking | Direct VPC egress, IAM invokers | Per-task ENI + security groups | VNet join, static IP, FQDN |
| GPU | NVIDIA L4 attached, scale-to-zero | Not supported | GPU-optimized VM SKUs |
| Orchestration | Standalone (events via Eventarc) | ECS or EKS | Standalone / Container Apps / Virtual Kubelet |
| Image security | Binary Authorization, Artifact Analysis | ECR scanning (Inspector), ECR policies | ACR + Defender/Qualys, Entra-auth pulls |
| Best for | Spiky HTTP/event workloads, serverless GPU | Steady services in AWS, lift-and-shift tasks | Burst jobs, CI runners, simple Azure workloads |
Pick Cloud Run for request-driven, spiky, or event-driven workloads — especially if you want scale-to-zero economics or occasional GPUs. Pick Fargate when you’re already invested in ECS/EKS, need steady always-on services with per-task network identity, and value AWS’s IAM/VPC integration over scale-to-zero. Pick ACI for simple, short-lived container groups: batch jobs, CI runners, internal tools — and layer Azure Container Apps on top when you need HTTP autoscaling with ACI-style simplicity.