Cloud Run or GKE: Matching Container Hosting to Traffic Patterns and Control Needs

The article contrasts Google's serverless Cloud Run with GKE, managed Kubernetes, for hosting containers. Cloud Run suits stateless services with spiky traffic, since it scales to zero when idle and bills per request. GKE fits steady workloads and tightly networked systems that need pod-level controls like NetworkPolicy, sidecars, and pre-scaled node pools. The author suggests a mixed setup, using one load balancer to route some services to Cloud Run and others to GKE. Shared best practices include limiting database connections per instance and closing public run.app endpoints.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in