{"id":19405,"date":"2021-09-20T18:00:00","date_gmt":"2021-09-20T12:30:00","guid":{"rendered":"https:\/\/www.testpreptraining.com\/blog\/?p=19405"},"modified":"2022-02-16T11:43:21","modified_gmt":"2022-02-16T06:13:21","slug":"an-overview-of-google-cloud-run","status":"publish","type":"post","link":"https:\/\/www.testpreptraining.ai\/blog\/an-overview-of-google-cloud-run\/","title":{"rendered":"An Overview of Google Cloud Run"},"content":{"rendered":"\n<p><a href=\"https:\/\/cloud.google.com\/run\/?--&amp;gclid=CjwKCAjwgviIBhBkEiwA10D2jyURv-IOwmE0gOE1rNfO-UW4dQ0rb8IKT_hAiaHAbZcrvjTgReA4-RoCyCIQAvD_BwE&amp;gclsrc=aw.ds#section-5\" target=\"_blank\" rel=\"noreferrer noopener\">Google Cloud Run<\/a> is responsible for creating and deploying highly scalable containerized applications on a completely managed serverless platform. This service allows you to write code your way using your favorite languages (Go, Python, Java, Ruby, Node.js, and more). Moreover, here, you can summarize all infrastructure management for a simple developer experience and can create the container and Knative open standards, enabling the portability of your applications.&nbsp;<\/p>\n\n\n\n<h6 class=\"wp-block-heading\"><strong><span style=\"text-decoration: underline;\">Benefits of Cloud Run<\/span>:<\/strong><\/h6>\n\n\n\n<ul class=\"wp-block-list\"><li>In Google Cloud Run, you can write code accordion to your way by creating any code or container that listens for requests or events. This allows to use anylanguage, with favorite dependencies and tools, and deploy them in seconds.<\/li><li>Secondly, you can abstract all infrastructure management by automatically scaling up and down from zero almost directly based on traffic. You only have to pay for the resources you use.<\/li><li>Lastly, Cloud RUn offers a developer experience in which you can create app development and deployment simpler and faster. Moreover, this is combined with Cloud Code, Cloud Build, Cloud Monitoring, and Cloud Logging for an enhanced end-to-end developer experience.<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>What are the features of Cloud Run?<\/strong><\/h4>\n\n\n\n<p>Google Cloud Run comes with various in-built <a href=\"https:\/\/cloud.google.com\/run\/?--&amp;gclid=CjwKCAjwgviIBhBkEiwA10D2jyURv-IOwmE0gOE1rNfO-UW4dQ0rb8IKT_hAiaHAbZcrvjTgReA4-RoCyCIQAvD_BwE&amp;gclsrc=aw.ds#section-13\" target=\"_blank\" rel=\"noreferrer noopener\">features<\/a> that make it the best in the market.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>1. Leverage container workflows and standards<\/strong><\/h6>\n\n\n\n<p>Containers are now a standard for packaging and deploying code and its dependencies. However, Cloud Run pairs well with the container ecosystem like Cloud Build, Cloud Code, Artifact Registry, and Docker.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>2. Pay\u2010per\u2010use<\/strong><\/h6>\n\n\n\n<p>In Cloud Run, you only have to pay when your code is running, charged to the nearest 100 milliseconds.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>3. Enhanced developer experience<\/strong><strong><\/strong><\/h6>\n\n\n\n<p>Cloud Run comes with a command\u2010line and user interface for deploying and managing your services. For continuous deployments, this is used with Cloud Code and Cloud Build.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>4. Completely Managed<\/strong><\/h6>\n\n\n\n<p>In this, you do not have to worry about managing infrastructure. After deploying, Cloud Run automatically manages your services.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>5. Quick autoscaling<\/strong><\/h6>\n\n\n\n<p>Cloud Run takes care of scaling up or down from zero to N depending on the amount of traffic.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>6. Redundancy<\/strong><\/h6>\n\n\n\n<p>Cloud Run services are regional, with various zones automatically duplicated.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>7. Security<\/strong><\/h6>\n\n\n\n<p>Cloud Run prepares secrets from Secret Manager. Moreover, it only deploys trusted container images with Binary Authorization with have support for bringing your own encryption keys. Further, in this, the container instances run in a secure sandbox isolated from other resources, with dedicated identities and permissions.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>8. Integrated logging and monitoring<\/strong><strong><\/strong><\/h6>\n\n\n\n<p>Cloud Run offers integration with Cloud Monitoring, Cloud Logging, Cloud Trace, and Error Reporting for ensuring the health of an application.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>9. Process asynchronous events<\/strong><strong><\/strong><\/h6>\n\n\n\n<p>In this, you can set up triggers for receiving events from 60+ Google Cloud sources through Cloud Audit Logs or Custom sources via Cloud Pub\/Sub<\/p>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>10. Portability<\/strong><\/h6>\n\n\n\n<p>Cloud Run accepts standard container images and is created on the Knative open-source project, thus allowing the portability of your workloads over platforms.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>11. HTTPS URLs<\/strong><\/h6>\n\n\n\n<p>Every Cloud Run service comes with a secure HTTPS endpoint that handles TLS termination for you. You may also map your services to your own domains like this.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>12. HTTP\/2, WebSockets, and gRPC<\/strong><strong><\/strong><\/h6>\n\n\n\n<p>You can request and connect Cloud Run services with HTTP\/1.*, HTTP\/2, WebSockets, or gRPC (unary and streaming).<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong><span style=\"text-decoration: underline;\">Use cases for Google Cloud Run<\/span>:<\/strong><\/h4>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>1. Web services: Websites<\/strong><\/h6>\n\n\n\n<p>In <a href=\"https:\/\/cloud.google.com\/run\/?--&amp;gclid=CjwKCAjwgviIBhBkEiwA10D2jyURv-IOwmE0gOE1rNfO-UW4dQ0rb8IKT_hAiaHAbZcrvjTgReA4-RoCyCIQAvD_BwE&amp;gclsrc=aw.ds#section-6\" target=\"_blank\" rel=\"noreferrer noopener\">Google Cloud Run<\/a>, you can create your website using a mature technology stack like Nginx, ExpressJS, and Django. Moreover, you can access your SQL database on Cloud SQL, and display dynamic HTML pages.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.gstatic.com\/bricks\/image\/dad5a0272f27af95525b772149adfdba13a83d83d1d5f7d84d5bb722a010d5dc.svg\" alt=\"Icon for Google Chrome flows to rectangle with programming languages Node.js, django, and Ruby on Rails, all which flow into Cloud SQL Relational\"\/><figcaption><strong>Image Source: Google Cloud<\/strong><\/figcaption><\/figure><\/div>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>2. Web services: REST APIs backend<\/strong><\/h6>\n\n\n\n<p>You should know that modern mobile apps usually depend on RESTful backend APIs for providing current views of application data and separation for frontend and backend development teams. However, the API services running on Cloud Run provide developers access for continuing data reliably on managed databases like Cloud SQL or Firestore (NoSQL).&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.gstatic.com\/bricks\/image\/ba7e4e7b69dfbdf12d02b231c54788f11e5460bf05e899aab5bc121fd8d9d741.svg\" alt=\"Example\"\/><figcaption><strong>Image Source: Google Cloud<\/strong><\/figcaption><\/figure><\/div>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>3. Web services: Back\u2010office administration<\/strong><\/h6>\n\n\n\n<p>Back\u2010office administration mostly needs documents, spreadsheets, and other custom integrations, and running a vendor\u2010supplied web application. Hosting the containerized internal web application on Cloud Run, on the other hand, ensures that it is always available and that you are only billed when it is utilized.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.gstatic.com\/bricks\/image\/ba04bca0f82c1257a3b176fae3e3b89402b1101bfc61a6c8675ef7f1f74f4fc8.svg\" alt=\"example\"\/><figcaption><strong>Image Source: Google Cloud<\/strong><\/figcaption><\/figure><\/div>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>4. Data processing: Lightweight data transformation<\/strong><\/h6>\n\n\n\n<p>In Cloud Run, you can create data processing applications that convert lightweight data as it arrives and store it as structured data. Transformations can trigger from Google Cloud sources.<\/p>\n\n\n\n<p>However, when a .csv file is built, an event is fired and delivered to a Cloud Run service. Then, the data is extracted, structured, and stored in a BigQuery table.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.testpreptraining.ai\/google-cloud-certified-professional-cloud-architect-practice-exam\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" width=\"961\" height=\"150\" src=\"https:\/\/www.testpreptraining.ai\/blog\/wp-content\/uploads\/2021\/08\/gcp-cours.png\" alt=\"GCP exam course\" class=\"wp-image-19411\" srcset=\"https:\/\/www.testpreptraining.ai\/blog\/wp-content\/uploads\/2021\/08\/gcp-cours.png 961w, https:\/\/www.testpreptraining.ai\/blog\/wp-content\/uploads\/2021\/08\/gcp-cours-300x47.png 300w\" sizes=\"(max-width: 961px) 100vw, 961px\" \/><\/a><\/figure><\/div>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>5. Automation: Scheduled document generation<\/strong><\/h6>\n\n\n\n<p>In Cloud Run, you can schedule a monthly job with Cloud Scheduler for creating invoices using a Cloud Run service. This is because containers containing custom binaries can be deployed to Cloud Run. Moreover, it is able to run in a PDF generation tool such as LibreOffice in a serverless way. This means that you only pay when you are creating invoices.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.gstatic.com\/bricks\/image\/27f850f4bb2beb93e982196c93b89662edea608b06f99f528c4abb051a63143b.svg\" alt=\"Use case diagram for scheduled document generation: Flow from Cloud Scheduler box on left, arrow labeled Every month moves right, to middle in stack of 3 boxes labeled PDF generation \/ Cloud Run. Arrow pointing up labeled Get customer data leads to Cloud SQL Relational. Arrow down, labeled Store invoices, leads to Cloud Storage\"\/><figcaption><strong>Image Source: Google Cloud<\/strong><\/figcaption><\/figure><\/div>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>6. Automation: Business workflow with webhooks<\/strong><\/h6>\n\n\n\n<p>Using Cloud Run, you connect your operations together with an event\u2010driven approach. Moreover, Cloud Run scales on demand while implementing a webhook target, pushing events in the form of requests and only charging you when you receive and process the event.<\/p>\n\n\n\n<p>Further, you can also react to events from GitHub or Slack, or send webhooks when<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>a purchase is made<\/li><li>a job is ready<\/li><li>an alert is fired with a service that can react on a just\u2010in\u2010time basis for triggering a microservice in your infrastructure.<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.gstatic.com\/bricks\/image\/19120fc77ed6a5f731d242357094e5071bd74b33ff96ae648872786f82275df6.svg\" alt=\"Box on left labeled Developer leads to right with arrow labeled Push code to Git Repository box, flows right with POST request arrow to 2nd in stack of 3 boxes, labeled Webhook Receiver\/Cloud Run. Arrow labeled Triggering points up to Other services box, another label, Relay, leads down to Google Chat.\"\/><figcaption><strong>Image Source: Google Cloud<\/strong><\/figcaption><\/figure><\/div>\n\n\n\n<p><em>Above we have covered the basic features and use cases of the Cloud Run. Now, it\u2019s time to get started with the service.<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Getting Started with Cloud Run<\/strong><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>1. Deploying a Prebuilt Sample Container&nbsp;<\/strong><\/h4>\n\n\n\n<p>In this, we will learn the process of <a href=\"https:\/\/cloud.google.com\/run\/docs\/quickstarts\/prebuilt-deploy\" target=\"_blank\" rel=\"noreferrer noopener\">deploying a sample container<\/a> that has already been uploaded to the Container Registry repository to Cloud Run.<\/p>\n\n\n\n<p><strong>Deploying the sample container<\/strong><\/p>\n\n\n\n<p>For deploying a container:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Firstly, go to Cloud Run<\/li><li>Secondly, click Create service for displaying the Create service form:<\/li><\/ol>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/cloud.google.com\/run\/docs\/images\/create-service-form.png\" alt=\"image\"\/><figcaption><strong>Image Source: Google Cloud<\/strong><\/figcaption><\/figure><\/div>\n\n\n\n<p><em>Then, in the form,<\/em><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Firstly, select the region where you want your service located.<\/li><li>Secondly, define the name you want to give to your service.<\/li><li>Then, click Next to continue to the Configure the service&#8217;s first revision page:<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/cloud.google.com\/run\/docs\/images\/create-service-form2.png\" alt=\"Example google cloud run\"\/><figcaption><strong>Image Source: Google Cloud<\/strong><\/figcaption><\/figure><\/div>\n\n\n\n<p><em>Next, in the form,<\/em><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Firstly, select Deploy one revision from an existing container image.<\/li><li>Secondly, use us-docker.pkg.dev\/cloudrun\/container\/hello as the container image.<\/li><li>Then, click Next to continue to the Configure how this service is triggered page:<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/cloud.google.com\/run\/docs\/images\/create-service-form3.png\" alt=\"image google cloud run\"\/><figcaption><strong>Image Source: Google Cloud<\/strong><\/figcaption><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>After that, select Allow unauthenticated invocations to be able to open the result in your web browser<\/li><li>Next, click Create for deploying the image to Cloud Run and wait for the deployment to finish.<\/li><\/ul>\n\n\n\n<p>3. Lastly, click the displayed URL link for running the deployed container.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>2. Building and Deploying<\/strong><\/h4>\n\n\n\n<p>Here, you can <a href=\"https:\/\/cloud.google.com\/run\/docs\/quickstarts\" target=\"_blank\" rel=\"noreferrer noopener\">build a simple application and package<\/a> it into a container. After that, you can deploy the container image to Cloud Run. For this, you can use any of the provided languages:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><em>Go<\/em><\/li><li><em>Node.js service<\/em><\/li><li><em>Python service<\/em><\/li><li><em>Java service<\/em><\/li><li><em>C# service<\/em><\/li><li><em>C++ service<\/em><\/li><li><em>PHP service<\/em><\/li><li><em>Ruby service<\/em><\/li><li><em>Shell service<\/em><\/li><li><em>Other languages<\/em><\/li><\/ul>\n\n\n\n<p><strong>For Example:&nbsp;<\/strong><\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>Building and deploying a Python service:&nbsp;<\/strong><\/h5>\n\n\n\n<p><em><strong>For writing an <a href=\"https:\/\/cloud.google.com\/run\/docs\/quickstarts\/build-and-deploy\/python\" target=\"_blank\" rel=\"noreferrer noopener\">application in Python<\/a>:<\/strong><\/em><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Firstly, create a new directory named helloworld and modify the directory into it:<\/li><\/ul>\n\n\n\n<p><em>mkdir helloworld<\/em><\/p>\n\n\n\n<p><em>cd helloworld<\/em><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Secondly, create a file named main.py. After that, paste the following code into it:<\/li><\/ul>\n\n\n\n<p><em>run\/helloworld\/main.py<\/em><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"872\" height=\"416\" src=\"https:\/\/www.testpreptraining.ai\/blog\/wp-content\/uploads\/2021\/08\/python.png\" alt=\"google cloud run example\" class=\"wp-image-19407\" srcset=\"https:\/\/www.testpreptraining.ai\/blog\/wp-content\/uploads\/2021\/08\/python.png 872w, https:\/\/www.testpreptraining.ai\/blog\/wp-content\/uploads\/2021\/08\/python-300x143.png 300w\" sizes=\"(max-width: 872px) 100vw, 872px\" \/><figcaption><strong>Image Source: Google Cloud<\/strong><\/figcaption><\/figure><\/div>\n\n\n\n<p>However, this code responds to requests with our &#8220;Hello World&#8221; greeting. Gunicorn web server in the container handles the HTTP. When directly requested for local use, this code builds a basic web server that listens on the port specified by the PORT environment variable.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>Containerizing an app and uploading it to Container Registry<\/strong><\/h6>\n\n\n\n<p>Create a new file named Dockerfile in the same directory as the source files to containerize the sample app. Then, copy the following content:<\/p>\n\n\n\n<p>The Python Dockerfile begins a Gunicorn web server that listens on the port specified by the PORT environment variable:<\/p>\n\n\n\n<p><em>run\/helloworld\/Dockerfile<\/em><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"546\" src=\"https:\/\/www.testpreptraining.ai\/blog\/wp-content\/uploads\/2021\/08\/python-1-1024x546.png\" alt=\"example\" class=\"wp-image-19408\" srcset=\"https:\/\/www.testpreptraining.ai\/blog\/wp-content\/uploads\/2021\/08\/python-1-1024x546.png 1024w, https:\/\/www.testpreptraining.ai\/blog\/wp-content\/uploads\/2021\/08\/python-1-300x160.png 300w, https:\/\/www.testpreptraining.ai\/blog\/wp-content\/uploads\/2021\/08\/python-1.png 1043w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption><strong>Image Source: Google Cloud<\/strong><\/figcaption><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>After that, add a .dockerignore file to exclude files from your container image.<\/li><\/ul>\n\n\n\n<p><em>run\/helloworld\/.dockerignore<\/em><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"263\" height=\"200\" src=\"https:\/\/www.testpreptraining.ai\/blog\/wp-content\/uploads\/2021\/08\/python-2.png\" alt=\"example\" class=\"wp-image-19409\"\/><figcaption><strong>Image Source: Google Cloud<\/strong><\/figcaption><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>Now, create a container image using Cloud Build, by running the command given below from the directory containing the Dockerfile:<\/li><\/ul>\n\n\n\n<p><em>gcloud builds submit &#8211;tag gcr.io\/PROJECT-ID\/helloworld<\/em><\/p>\n\n\n\n<p>In this, the PROJECT-ID is your GCP project ID. You can obtain it by running gcloud config get-value project.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Lastly, you will see a SUCCESS message containing the image name (gcr.io\/PROJECT-ID\/helloworld). Further, the image can be re-used and is stored in Container Registry.<\/li><\/ul>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>Deploying to Cloud Run<\/strong><\/h6>\n\n\n\n<p>For deploying the container image:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Use the following command:<ul><li><em>gcloud run deploy &#8211;image gcr.io\/PROJECT-ID\/helloworld<\/em><\/li><li>However, if reminded for enabling the API, Reply y to enable.<\/li><li>Then, replace PROJECT-ID with your GCP project ID. Moreover, you can view your project ID by running the command gcloud config get-value project.<ul><li>Here, you will get a reminder for the service name: press Enter to accept the default name, helloworld.<\/li><li>Then, you will get a reminder for the region: select the region of your choice.<\/li><li>Then, you will get reminder to allow unauthenticated invocations: respond y.<\/li><\/ul><\/li><\/ul><\/li><li>Secondly, go on the deployed container by opening the service URL in a web browser. And, after finishing the deployment, you can successfully deploy an application packaged in a container image to Cloud Run.&nbsp;<ul><li>Further, Cloud Run has the ability for automatically and horizontally scaling out your container image for handling the received requests, then scales in when demand decreases.&nbsp;<\/li><\/ul><\/li><\/ul>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>Cleaning up<\/strong><\/h6>\n\n\n\n<p>You can delete your image or delete your Cloud project for avoiding incurring charges. Furthermore, removing your Cloud project cancels any charges for the resources utilised in that project. For deleting:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Firstly, go to the Manage resources page in the Cloud Console.<\/li><li>Then, select the project that you want to delete from the project list, and then click Delete.<\/li><li>Lastly, type the project ID in the dialog, and then click Shut down for deleting the project.<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>What is Cloud Run pricing?<\/strong><\/h4>\n\n\n\n<p>In<a href=\"https:\/\/cloud.google.com\/run\/pricing\" target=\"_blank\" rel=\"noreferrer noopener\"> Cloud Run<\/a>, you only have to pay for the resources you use. This gets rounded up to the nearest 100 milliseconds. However, the total Cloud Run bill will be the cost of the resources in the pricing table. While setting concurrency higher than one request at a time, multiple requests can share the assigned CPU and memory.<\/p>\n\n\n\n<p><strong>Billable time:<\/strong><\/p>\n\n\n\n<p>You only have to pay for the CPU and memory used during billable time, which is rounded up to the closest 100 milliseconds. However, for a given container instance, active billable time occurs when:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Firstly, the container instance is beginning.<\/li><li>Secondly, the container instance is shutting down (handling the SIGTERM signal).<\/li><li>Lastly, at least one request is being processed by the container instance. Active billable time starts at the beginning of the first request and ends at the end of the last request.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Final Words<\/strong><\/h3>\n\n\n\n<p>Above we have understood the concepts of Google Cloud Run by covering the benefits, features, use cases, and how to get started with it. Many major firms are benefiting from this service, which allows them to quickly interact with a wide range of partner technologies. So, if you have an interest in learning more about Cloud Run then, go through the blog and use Google Documentation as a reference for getting more clarity.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/www.testpreptraining.ai\/google-cloud-certified-professional-cloud-architect-free-practice-test\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"https:\/\/www.testpreptraining.ai\/blog\/wp-content\/uploads\/2020\/12\/cloud-arch-practice-tests.png\" alt=\"professional cloud architect practice tests\"\/><\/a><\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Google Cloud Run is responsible for creating and deploying highly scalable containerized applications on a completely managed serverless platform. This service allows you to write code your way using your favorite languages (Go, Python, Java, Ruby, Node.js, and more). Moreover, here, you can summarize all infrastructure management for a simple developer experience and can create&#8230;<\/p>\n","protected":false},"author":2,"featured_media":19406,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,244],"tags":[3199,3197,3200,3201,3196,3198,3202],"class_list":["post-19405","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud-computing","category-google","tag-build-and-deploy-a-container","tag-cloud-run-features","tag-cloud-run-pricing","tag-cloud-run-use-cases","tag-google-cloud-run","tag-google-cloud-run-benefits","tag-google-cloud-run-overview"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>An Overview of Google Cloud Run - Testprep Training Blog<\/title>\n<meta name=\"description\" content=\"Take your knowledge and skills to next level by getting familiar with the Google Cloud Run services. Prepare and become GCP certified Now!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.testpreptraining.ai\/blog\/an-overview-of-google-cloud-run\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"An Overview of Google Cloud Run - Testprep Training Blog\" \/>\n<meta property=\"og:description\" content=\"Take your knowledge and skills to next level by getting familiar with the Google Cloud Run services. Prepare and become GCP certified Now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.testpreptraining.ai\/blog\/an-overview-of-google-cloud-run\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-20T12:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-16T06:13:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.testpreptraining.ai\/blog\/wp-content\/uploads\/2021\/08\/cloud-run.png\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Pulkit Dheer\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pulkit Dheer\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.testpreptraining.ai\/blog\/an-overview-of-google-cloud-run\/\",\"url\":\"https:\/\/www.testpreptraining.ai\/blog\/an-overview-of-google-cloud-run\/\",\"name\":\"An Overview of Google Cloud Run - Testprep Training Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/blog\/#website\"},\"datePublished\":\"2021-09-20T12:30:00+00:00\",\"dateModified\":\"2022-02-16T06:13:21+00:00\",\"author\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/blog\/#\/schema\/person\/0931136793896e849443990eb08ddb21\"},\"description\":\"Take your knowledge and skills to next level by getting familiar with the Google Cloud Run services. Prepare and become GCP certified Now!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/blog\/an-overview-of-google-cloud-run\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.testpreptraining.ai\/blog\/an-overview-of-google-cloud-run\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.testpreptraining.ai\/blog\/an-overview-of-google-cloud-run\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.testpreptraining.ai\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"An Overview of Google Cloud Run\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.testpreptraining.ai\/blog\/#website\",\"url\":\"https:\/\/www.testpreptraining.ai\/blog\/\",\"name\":\"Learning Resources\",\"description\":\"Testprep Training Blogs\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.testpreptraining.ai\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.testpreptraining.ai\/blog\/#\/schema\/person\/0931136793896e849443990eb08ddb21\",\"name\":\"Pulkit Dheer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.testpreptraining.ai\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/162b67a9229d8169c3c928e0ada4e252be835b0d89b1eaff259f320e4a2fd630?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/162b67a9229d8169c3c928e0ada4e252be835b0d89b1eaff259f320e4a2fd630?s=96&d=mm&r=g\",\"caption\":\"Pulkit Dheer\"},\"description\":\"With a background in Engineering and a great enthusiasm for writing, Pulkit focuses on intensive research to create targeted content. He brings his years of learning and experience to his current role. With a zeal towards technological research and powerful use of words dedicated to inspire and help professionals onset their career.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"An Overview of Google Cloud Run - Testprep Training Blog","description":"Take your knowledge and skills to next level by getting familiar with the Google Cloud Run services. Prepare and become GCP certified Now!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.testpreptraining.ai\/blog\/an-overview-of-google-cloud-run\/","og_locale":"en_US","og_type":"article","og_title":"An Overview of Google Cloud Run - Testprep Training Blog","og_description":"Take your knowledge and skills to next level by getting familiar with the Google Cloud Run services. Prepare and become GCP certified Now!","og_url":"https:\/\/www.testpreptraining.ai\/blog\/an-overview-of-google-cloud-run\/","og_site_name":"Blog","article_published_time":"2021-09-20T12:30:00+00:00","article_modified_time":"2022-02-16T06:13:21+00:00","og_image":[{"width":750,"height":400,"url":"https:\/\/www.testpreptraining.ai\/blog\/wp-content\/uploads\/2021\/08\/cloud-run.png","type":"image\/png"}],"author":"Pulkit Dheer","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Pulkit Dheer","Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.testpreptraining.ai\/blog\/an-overview-of-google-cloud-run\/","url":"https:\/\/www.testpreptraining.ai\/blog\/an-overview-of-google-cloud-run\/","name":"An Overview of Google Cloud Run - Testprep Training Blog","isPartOf":{"@id":"https:\/\/www.testpreptraining.ai\/blog\/#website"},"datePublished":"2021-09-20T12:30:00+00:00","dateModified":"2022-02-16T06:13:21+00:00","author":{"@id":"https:\/\/www.testpreptraining.ai\/blog\/#\/schema\/person\/0931136793896e849443990eb08ddb21"},"description":"Take your knowledge and skills to next level by getting familiar with the Google Cloud Run services. Prepare and become GCP certified Now!","breadcrumb":{"@id":"https:\/\/www.testpreptraining.ai\/blog\/an-overview-of-google-cloud-run\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.testpreptraining.ai\/blog\/an-overview-of-google-cloud-run\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.testpreptraining.ai\/blog\/an-overview-of-google-cloud-run\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.testpreptraining.ai\/blog\/"},{"@type":"ListItem","position":2,"name":"An Overview of Google Cloud Run"}]},{"@type":"WebSite","@id":"https:\/\/www.testpreptraining.ai\/blog\/#website","url":"https:\/\/www.testpreptraining.ai\/blog\/","name":"Learning Resources","description":"Testprep Training Blogs","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.testpreptraining.ai\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.testpreptraining.ai\/blog\/#\/schema\/person\/0931136793896e849443990eb08ddb21","name":"Pulkit Dheer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.testpreptraining.ai\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/162b67a9229d8169c3c928e0ada4e252be835b0d89b1eaff259f320e4a2fd630?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/162b67a9229d8169c3c928e0ada4e252be835b0d89b1eaff259f320e4a2fd630?s=96&d=mm&r=g","caption":"Pulkit Dheer"},"description":"With a background in Engineering and a great enthusiasm for writing, Pulkit focuses on intensive research to create targeted content. He brings his years of learning and experience to his current role. With a zeal towards technological research and powerful use of words dedicated to inspire and help professionals onset their career."}]}},"_links":{"self":[{"href":"https:\/\/www.testpreptraining.ai\/blog\/wp-json\/wp\/v2\/posts\/19405","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testpreptraining.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.testpreptraining.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/blog\/wp-json\/wp\/v2\/comments?post=19405"}],"version-history":[{"count":10,"href":"https:\/\/www.testpreptraining.ai\/blog\/wp-json\/wp\/v2\/posts\/19405\/revisions"}],"predecessor-version":[{"id":23908,"href":"https:\/\/www.testpreptraining.ai\/blog\/wp-json\/wp\/v2\/posts\/19405\/revisions\/23908"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/blog\/wp-json\/wp\/v2\/media\/19406"}],"wp:attachment":[{"href":"https:\/\/www.testpreptraining.ai\/blog\/wp-json\/wp\/v2\/media?parent=19405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/blog\/wp-json\/wp\/v2\/categories?post=19405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/blog\/wp-json\/wp\/v2\/tags?post=19405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}