AlgoViz

Google Cloud Functions

medium 29 min

Google Cloud Functions, called Cloud Run functions since August 2024, runs one piece of your code when a request or an event arrives.

Where it shows up

The same pattern appears across everyday software.

  • Pictures in a bucket

    Google's own announcement names the common case: an object is added to Cloud Storage, and the function makes a thumbnail or examines the text.

  • Loading BigQuery

    The same text lists transforming data and loading it into BigQuery as a typical job.

  • Webhooks

    A function that a third party such as GitHub calls: check the signature, store the event, answer fast.

  • Mobile back ends with Firebase

    Cloud Functions for Firebase reacts to changes in Firestore or to new accounts, using the same platform with Firebase tools.

  • Inference on a GPU

    Cloud Run functions can use NVIDIA GPUs. Google's 2024 text quotes Hugging Face on running models with a few lines of Python.

  • Moving from the first generation

    Google offers an upgrade tool, generally available since August 2026, that copies a 1st gen function and moves its traffic.