Deploy Stateless, HTTP-Invocable Containers With Google Cloud Run

Google Cloud Run

Google has recently expanded its serverless compute options by introducing Google Cloud Run, this gives developers access to a managed compute service that lets them run invocable stateless containers via HTTP requests. Google Cloud Run can also be used with the Google Kubernetes Engine (GKE), this can allow developers run containerized HTTP workloads on managed Kubernetes clusters.

Developers can take advantage of the portability of containers and the velocity of serverless computing with Cloud Run. Cloud run also enables users to only pay for the resources their containers would actually use thanks Cloud Run’s automated provisioning and workload scaling. Cloud Run also allows app developers to build applications in any language they choose along with any tools and dependencies they prefer.

And with Google Kubernetes Engine, Cloud Run allows stateless HTTP workloads to run on existing Kubernetes clusters. This gives users access to Google Compute Engine networks, custom machine types, and to run side-by-side with other workloads running in the same cluster.

Here are the main Google Cloud Run features:

  • A command line and user interface for deploying and managing services.
  • Autoscaling, moving up and down from zero to N based on traffic. When running on GKE, autoscaling is limited to the capacity within the cluster.
  • Users can select their own language or operating system libraries as well as use their own binaries.
  • Container workflows and standards can be leveraged. Cloud Run can be paired with Cloud Build, Container Registry, and Docker, among others.
  • Redundancy is provided. Services are regional and automatically replicated across multiple zones.
  • Integrated logging and monitoring, including Stackdriver monitoring, logging, and error-reporting.
  • Users can map services to their own domains.

Cloud Run is based on Knative, an open source API that enables developers access to “serverless” workloads across the Google Cloud Platform (GKE, and pretty much anywhere Kubernetes is used). Cloud Run also shares core infrastructure with two other serverless technologies, Google Cloud Functions and Google App Engine.

Cloud Run is currently in beta and you can visit the Google Cloud Platform website to start a free trial here.

About the author

Kenneth is a digital marketing specialist by profession with a strong focus on SEO and Analytics, has helped companies grow their organic traffic and attract visitors from different marketing channels. Has a strong background in programming thanks to his degree in Computer Science, loves creating, tinkering, and growing websites.

Leave a Reply

Like what you're reading?
Subscribe and get exclusive access to the latest industry news, guides and resources.