{"id":174249,"date":"2023-11-27T20:40:02","date_gmt":"2023-11-27T19:40:02","guid":{"rendered":"https:\/\/liora.io\/en\/?p=174249"},"modified":"2026-02-06T08:44:15","modified_gmt":"2026-02-06T07:44:15","slug":"gcp-cloud-run-what-is-it-whats-it-for","status":"publish","type":"post","link":"https:\/\/liora.io\/en\/gcp-cloud-run-what-is-it-whats-it-for","title":{"rendered":"GCP Cloud Run: What is it? What&#8217;s it for?"},"content":{"rendered":"<p><strong>To exploit code and develop an application, DevOps can use GCP Cloud Run. So what&#8217;s it all about? What features does it offer? And what are the benefits? Find out in this article. <\/strong><\/p>\t\t\n\t\t\t<h3>What is GCP Cloud Run?<\/h3>\t\t\n\t\t<p><strong>GCP Cloud Run<\/strong> is a platform that allows you to run your code directly on <a href=\"https:\/\/liora.io\/en\/terraform-using-gcp-to-deploy-your-infrastructure\">Google&#8217;s infrastructure.<\/a> Through GCP Cloud Run, your various services can be hosted in containers, all in a serverless approach. It is, therefore, a container-based tool that ensures a separation between your tasks and the platform.<\/p><p>While its operation is slightly more complex than source code-based tools, <strong>GCP Cloud Run<\/strong> helps ensure compliance between what is executed and what is tested.<\/p>\t\t\n\t\t\t<h3>How does Cloud Run work on GCP?<\/h3>\t\t\n\t\t<p>There are two ways to <strong>exploit the code on Cloud Run.<\/strong><\/p>\t\t\n\t\t\t<h4>Cloud Run services<\/h4>\t\t\n\t\t<p>With this option, you can leverage code that responds to a web request or an event.<\/p><p>Here are some concrete examples of using this option:<\/p><ul><li><strong>Websites and web applications:<\/strong> You can build an app using all your usual tools, <a href=\"https:\/\/liora.io\/en\/sql-queries-the-5-most-important-commands-to-know\">access a SQL database,<\/a> and create dynamic HTML pages.<\/li><li><strong>APIs and Microservices:<\/strong> With Cloud Run Services, you can design a RESTful, gRPC, or GraphQL API. These can be made public or private.<\/li><li><strong>Streaming data processing<\/strong>: You can receive messages from Cloud Pub\/Sub, requests from Cloud Tasks, and events.<\/li><\/ul>\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t<figure>\n\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/liora.io\/app\/uploads\/2023\/03\/data-streaming.jpg\" title=\"\" alt=\"\" loading=\"lazy\">\t\t\t\t\t\t\t\t\t\t\t<figcaption><\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t<p>This service handles all the requests and events received through container instances. On your part, you just need to ensure that the code meets the requirements of the T<strong>CP port<\/strong> and performs the required tasks.<\/p><p><strong>?Good to know:<\/strong> Each Cloud Run Service comes with an HTTPS endpoint and a unique subdomain. If necessary, you can also create your custom domains.<\/p>\t\t\n\t\t\t<h4>What is Cloud Run Jobs?<\/h4>\t\t\n\t\t<p>With this feature, the <strong>code performs a task<\/strong> and stops once the task is completed. For example, deploying a database migration, generating invoices, etc.<\/p><p>The significant advantage of <strong>Cloud Run Job<\/strong> is the ability to perform multiple tasks simultaneously (referred to as Array jobs). The idea is to divide a job into different independent tasks. As multiple container instances run in parallel, you save valuable time in executing the code.<\/p><p>These two features operate in the same <strong>Cloud Run environment<\/strong>, so they can use the same integrations. If you need a specific database, storage option, or management tool, <a href=\"https:\/\/liora.io\/en\/choosing-the-right-cloud-provider-aws-vs-azure-vs-gcp-unveiled\">you can use Google Cloud Platform tools (Pub\/Sub, Cloud SQL, Secret Manager, etc.).<\/a><\/p>\t\t\n\t\t\t\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex is-content-justification-center\"><div class=\"wp-block-button \"><a class=\"wp-block-button__link wp-element-button \" href=\"\/en\/courses\/data-ai\/data-scientist\">Find out more about our Data Science training courses<\/a><\/div><\/div>\n\n\t\t\t<h3>What are GCP Cloud Run&#8217;s features?<\/h3>\t\t\n\t\t<p>To<a href=\"https:\/\/liora.io\/en\/what-are-the-benefits-of-devops\"> simplify the work of DevOps,<\/a> Cloud Run GCP offers a number of particularly useful features.<\/p>\t\t\n\t\t\t<h4>Auto scaling<\/h4>\t\t\n\t\t<p>GCP Cloud Run automatically improves its capabilities when it deems it necessary, depending on the workload demand. This ensures that <strong>GCP Cloud Run<\/strong> can handle all incoming requests, regardless of their volume.<\/p><p>This adaptation is made possible by a load balancing system, which all Cloud Run services have.<\/p><p>Thanks to auto scaling, requests are distributed to available containers. If all containers are busy, <strong>Cloud Run<\/strong> adds more. Conversely, as demand decreases, Cloud Run stops sending traffic to the containers and shuts them down.<\/p><p><strong>?Good to know:<\/strong> The default limit for the number of containers available on Cloud Run is 1000 instances. However, if you need more containers, you can always request a change in quotas.<\/p>\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t<figure>\n\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/liora.io\/app\/uploads\/2023\/03\/auto-scaling.jpg\" title=\"\" alt=\"\" loading=\"lazy\">\t\t\t\t\t\t\t\t\t\t\t<figcaption><\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t\t<h4>Traffic management <\/h4>\t\t\n\t\t<p>The<strong> Traffic management<\/strong> feature is directly integrated into GCP Cloud Run. Thus, every new deployment automatically creates an immutable revision.<\/p><p>You can then route traffic to previous revisions, roll back, or split traffic to different versions of the code simultaneously for progressive deployment.<\/p><p>This last option is particularly useful if you want to mitigate the risk of deploying a new version. For example, if you send only 1% of traffic to the new version and notice a higher error rate, you can immediately stop the deployment to make corrections.<\/p>\t\t\n\t\t\t<h4>Other features<\/h4>\t\t\n\t\t<p>You also have access to other<strong> features on GCP Cloud Run<\/strong>, such as:<\/p><p>&#8211; Choice of programming language, library, and binary.<br>&#8211;<a href=\"https:\/\/liora.io\/en\/docker-tutorial-how-to-create-your-first-container\"> Use of containers.<\/a><br>&#8211; Integrated monitoring and logging.<br>&#8211; Portability.<br>&#8211; And more.<\/p><p>To master all of the <strong>GCP Cloud Run services,<\/strong> consider taking a training course.<\/p>\t\t\n\t\t\t\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex is-content-justification-center\"><div class=\"wp-block-button \"><a class=\"wp-block-button__link wp-element-button \" href=\"\/en\/courses\/data-ai\/\">Discover Liora&#8217;s training courses<\/a><\/div><\/div>\n\n\t\t\t<h3>What are the advantages of Cloud Run?<\/h3>\t\t\n\t\t\t<h4>Simplicity<\/h4>\t\t\n\t\t<p><strong>GCP Cloud Run<\/strong> is a fully managed service, so there&#8217;s no need to pre-provision infrastructure or manage clusters.<\/p><p>This allows you to be more productive and move faster in the design of software and applications.<\/p>\t\t\n\t\t\t<h4>Flexibility<\/h4>\t\t\n\t\t<p>With <strong>GCP Cloud Run<\/strong>, it&#8217;s possible to deploy code written in any programming language (Go, Node.js, Python, Java, .NET, Ruby, etc.). Even though Cloud Run is a container-based solution, you can still use the source-based option. This allows you to create containers for yourself from the various languages you use.<\/p>\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t<figure>\n\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/liora.io\/app\/uploads\/2023\/03\/code-python.jpg\" title=\"\" alt=\"\" loading=\"lazy\">\t\t\t\t\t\t\t\t\t\t\t<figcaption><\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t<p>Furthermore, Cloud Run allows you to integrate with all the tools of GCP. These integrations enable you to develop high-performance and complex applications.<\/p>\t\t\n\t\t\t<h4>Price<\/h4>\t\t\n\t\t<p>GCP Cloud Run primarily operates on the Free Tier principle. This means you pay based on what you use in terms of CPU and memory. So, you don&#8217;t spend any budget on Google Cloud Platform services if the capacity is inactive.<\/p>\t\t\n\t\t\t<h3>Things to remember<\/h3>\t\t\n\t\t<ol><li style=\"font-weight: 400;\" aria-level=\"1\"><p>GCP Cloud Run is a container-based tool that allows you to run your code directly on Google&#8217;s infrastructure.<\/p><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><p>You can achieve this using either Cloud Run Services or Cloud Run Jobs, depending on your requirements.<\/p><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><p>With its numerous features and ease of use, Cloud Run enables developers to increase productivity and efficiency, all at a lower cost.<\/p><\/li><\/ol><p>If you still have unanswered questions, don&#8217;t hesitate to schedule an appointment with a representative at Liora who will guide you toward a training program.<\/p>\t\t\n\t\t\t\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex is-content-justification-center\"><div class=\"wp-block-button \"><a class=\"wp-block-button__link wp-element-button \" href=\"\/en\/appointment\">Make an appointment with one of our advisors<\/a><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>To exploit code and develop an application, DevOps can use GCP Cloud Run. So what&#8217;s it all about? What features does it offer? And what are the benefits? Find out in this article. What is GCP Cloud Run? GCP Cloud Run is a platform that allows you to run your code directly on Google&#8217;s infrastructure. [&hellip;]<\/p>\n","protected":false},"author":76,"featured_media":174250,"comment_status":"open","ping_status":"open","sticky":false,"template":"elementor_theme","format":"standard","meta":{"_acf_changed":false,"editor_notices":[],"footnotes":""},"categories":[2434],"class_list":["post-174249","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud-dev"],"acf":[],"_links":{"self":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/174249","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/users\/76"}],"replies":[{"embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/comments?post=174249"}],"version-history":[{"count":1,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/174249\/revisions"}],"predecessor-version":[{"id":206205,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/174249\/revisions\/206205"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/media\/174250"}],"wp:attachment":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/media?parent=174249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/categories?post=174249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}