Google Cloud

Cloud Run Complete Guide: Serverless Container Platform Features, Pricing, and GKE Comparison

2026-05-24
NicheeLab Editorial Team

Cloud Run is Google Cloud's serverless container platform. You can deploy any Docker image in any language and it auto-scales for you. Built on Knative, it supports both HTTP-request-driven services and batch jobs. Alongside GKE, it has become a first-choice option for microservices.

Cloud Run Key Features

  • Serverless: no cluster management — just bring a container
  • Auto scaling: 0 to N instances (default max 1000)
  • Pay-per-use: billed only for CPU and memory time during request processing
  • Any language: anything that builds into a Docker image (Go, Python, Java, Node.js, Rust, .NET, and more)
  • Custom domains: Google-managed SSL certificates supported
  • Long-running execution: up to 60 minutes per request (7 days per job)

Services and Jobs

ItemServiceJob
TriggerHTTP request / Eventarc / Pub/Sub pushManual / Cloud Scheduler / Workflows
Execution timeUp to 60 minutes per requestUp to 7 days per task
ParallelismHorizontally scales with concurrent requestsParallel tasks via the parallelism setting
Primary use caseWeb APIs and microservicesBatch processing, ETL, report generation

Scaling Configuration

  • Min instances: 0 (default, cold starts apply) or 1+ (always-on)
  • Max instances: defaults to 100, configurable up to 1000
  • Concurrency: concurrent requests per instance (default 80)
  • CPU allocation: request-based (only during requests) or always allocated

Pricing

ItemPrice (us-central1, 2026)
vCPU time$0.00002400 per vCPU-second (during request processing)
Memory time$0.00000250 per GiB-second
Request count$0.40 per 1 million requests
Free tier240,000 vCPU-seconds, 450,000 GiB-seconds, and 2 million requests per month

Cloud Run vs Cloud Functions vs GKE

ItemCloud RunCloud Functions (2nd gen)GKE Autopilot
BaseContainerContainer (internally)Kubernetes
LanguageAnyNode / Python / Go / Java / .NET / Ruby / PHPAny
Max execution time60 minutes (service)9 minutes (HTTP) / 60 minutes (event)Unlimited (pod)
Scaling0 → 10000 → 3000Adjust pod count
PricingPay-per-usePay-per-usePod time (vCPU/memory)
Primary use caseGeneral microservicesEvent-drivenComplex orchestration

Typical Architectures

Web API + Database

Cloud Run (backend) + Cloud SQL (PostgreSQL) + Cloud Storage (images) + IAP / Cloud Armor (security)

Event-Driven Microservices

Pub/Sub → Cloud Run (push) → writes to Firestore / BigQuery

Scheduled Batch Processing

Cloud Scheduler → Cloud Run job → processes BigQuery / GCS data

Multi-Region Deployment

Global external HTTPS load balancer + Cloud Run services in multiple regions + Cloud CDN

CI/CD Pipeline

  1. Push code to GitHub or Cloud Source Repositories
  2. Trigger an automated build with Cloud Build
  3. Store the container image in Artifact Registry
  4. Run canary or blue/green deployments via Cloud Deploy
  5. Allow only signed images via Binary Authorization
  6. Monitor with Cloud Monitoring and Cloud Logging

Security Best Practices

  • Create a dedicated service account (do not use the default SA)
  • Scope roles/run.invoker as narrowly as possible in IAM
  • Connect to internal resources via a VPC connector and Serverless VPC Access
  • Combine Cloud Armor and IAP for WAF and zero-trust access
  • Manage API keys and DB connection strings with Secret Manager
  • Verify image signatures with Binary Authorization

What is the difference between Cloud Run and Cloud Functions?

Cloud Run is container-based, supports any language, and handles long-running requests (up to 60 minutes). Cloud Functions is source-code based, supports specific languages, and targets short-running workloads. Cloud Functions 2nd gen actually runs on top of Cloud Run internally.

What is the difference between Cloud Run services and jobs?

Services are HTTP request-driven (and can stay always-on). Jobs are batch workloads that run until completion or timeout and then exit. Use Cloud Scheduler to trigger jobs on a schedule.

Should I choose GKE or Cloud Run?

If you want Google to handle container scaling for you, pick Cloud Run. If you need the Kubernetes API, custom workloads, or StatefulSets, pick GKE. Cloud Run is overwhelmingly easier for microservices.

How long is a cold start?

It depends on the base image and the application. Go, Rust, and Node.js typically come in under 100 ms; Java and Python take 1-3 seconds. Setting min instances to 1 eliminates cold starts but incurs always-on cost.

How does pricing work?

You pay for CPU time, memory time, and request count. Billing is request-based (CPU is allocated only during request processing) or always-on. The free tier includes 2 million requests per month.

Can Cloud Run hold state?

Cloud Run is stateless by design. Externalize state to Firestore, Cloud SQL, or Memorystore. Persistent volumes are not supported. Cloud Run Volumes (Cloud Storage mounts) are available in a limited form.

How do you set up authentication?

You can make services public (allUsers) or restrict them via IAM (roles/run.invoker). Putting Cloud Endpoints, API Gateway, or Apigee in front is also common. Service-to-service auth uses a service account plus an ID token.

How do you deploy Cloud Run across regions?

Yes, this is supported. Register Cloud Run services from multiple regions as backends behind a global external HTTPS load balancer, and traffic will route automatically to the closest region.

Related Articles: Compute

App Engine 完全ガイド|Standard vs Flexible・料金・Cloud Run 比較 (GCP)

Google App Engine の Standard と Flexible の違い、料金、Traffic Splitting、Cron、Cloud Run / Cloud Functions との使い分け、AWS Elastic Beanstalk / Azure App Service 比較を徹底解説。

GCP Professional Cloud Developer (PCD) 完全ガイド|Cloud Run・GKE・CI/CD・APM

Google Cloud Professional Cloud Developer の試験範囲、Cloud Run / GKE / Cloud Build / Cloud Trace、AWS DVA / Azure AZ-204 比較、学習ロードマップを徹底解説。

Cloud Scheduler + Cloud Functions/Run で定期バッチ自動化チュートリアル (GCP)

Google Cloud Scheduler と Cloud Functions / Cloud Run Job で定期バッチ自動化。cron 形式、OIDC 認証、リトライ、Dead Letter、Workflows 連携、Cloud Run Job 並列実行を 2026 年最新版で解説。

Cloud Functions (2nd gen) 完全ガイド|1st gen 違い・料金・Lambda 比較 (GCP)

Google Cloud Functions 2nd gen の全機能解説。1st gen 違い、Eventarc 統合、Cloud Run ベース、対応言語、コールドスタート対策、AWS Lambda 比較、無料枠・料金体系を網羅。

Google Cloud and Cloud Run are trademarks of Google LLC. For the latest information, see the official Cloud Run documentation.

Check what you learned with practice questions

Practice with certification-focused question sets

View GCP Exam Prep
Author

NicheeLab Editorial Team

NicheeLab editorial team focused on data engineering and cloud certification learning. Content is structured around practical study needs and official exam domains.


Related articles
Google Cloud

Google Cloud Certification Roadmap (2026)

Choose your GCP certification path — Foundational, Associate...

Google Cloud

CDL Cloud Digital Leader: Complete Exam Guide (2026)

Pass the Cloud Digital Leader exam — cloud business value, G...

Google Cloud

GAIL Generative AI Leader: Complete Exam Guide (2026)

Pass the Generative AI Leader exam — Gemini, Vertex AI, Work...

Google Cloud

Vertex AI Fundamentals for GCP Certs (2026)

Vertex AI basics every cert candidate needs — Workbench, Pip...

Google Cloud

Associate Cloud Engineer (ACE): Complete Guide (2026)

Pass the Associate Cloud Engineer exam — Console, gcloud, pr...

Browse all Google Cloud articles (103)
© 2026 NicheeLab All rights reserved.