Applications in the Cloud Flashcards
(10 cards)
What is Cloud Run?
A managed compute platform that runs stateless containers via web requests or Pub/Sub events. It’s serverless, meaning no infrastructure management is needed.
What is a key benefit of Cloud Run’s scaling?
It can automatically scale up and down from zero almost instantaneously, charging only for the resources used, calculated down to the nearest 100 milliseconds.
Describe the three main steps in the Google Cloud Run workflow.
- Write your code; 2. Build and package it into a container image; 3. Deploy to Cloud Run.
What is the alternative workflow for Cloud Run if you don’t want to manage containers?
A source-based workflow where Cloud Run uses Buildpacks to automatically build and package your source code into a container image.
How is pricing unique for Cloud Run?
You are only charged when your container handles requests, including startup and shutdown time, with a granularity of 100ms. You don’t pay for idle time.
What types of applications can Cloud Run run?
Any binary compiled for Linux 64-bit, including web applications written in popular languages like Java, Python, Node.js, PHP, Go, and C++.
What are Cloud Run functions designed for?
Lightweight, event-based, asynchronous compute solutions for creating small, single-purpose functions that respond to cloud events.
When would you use a Cloud Run function?
For event-driven tasks where you want to execute bite-sized business logic, such as converting image formats, generating thumbnails, or sending notifications when a new file is uploaded.
How are Cloud Run functions invoked?
They can be triggered asynchronously by events from Cloud Storage and Pub/Sub, or synchronously using HTTP invocation.
What is the main difference in use case between Cloud Run and Cloud Run functions?
Cloud Run is for hosting entire dynamic web applications or APIs, while Cloud Run functions are for small, single-purpose, event-driven tasks.