A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://cloud.google.com/functions/docs/concepts/version-comparison below:

Compare Cloud Run functions | Cloud Run Documentation

Compare Cloud Run functions

Stay organized with collections Save and categorize content based on your preferences.

This guide compares the latest and original Google Cloud choices for deploying functions. This page helps those who previously created functions with the Cloud Functions API and are transitioning to the Cloud Run Admin API. This page describes key differences in several areas, such as concepts, configuration, deployment, and triggers and retries.

Comparison

There are two versions of Cloud Run functions:

By deploying functions directly onto Cloud Run, your functions are automatically built as containers and deployed as a Cloud Run service.

Concepts

The following table summarizes the conceptual differences for functions.

Cloud Run functions Cloud Run functions (1st gen) Former product name Cloud Functions (2nd gen) Cloud Functions (1st gen) Resource model A function is a Cloud Run service that is deployed from source code A function is deployed from source code Types of functions terminology Assigned HTTPS URL run.app

Functions created with the Cloud Functions v2 API also have a cloudfunctions.net endpoint.

cloudfunctions.net Image registry Artifact Registry only Artifact Registry or Container Registry (deprecated) IAM roles for deployment Internal infrastructure Cloud Run Google internal Pricing model Cloud Run pricing Cloud Run functions (1st gen) pricing Configuration

Cloud Run builds functions into containers and deploys them as services. When you deploy a function to Cloud Run, you have complete access and control over the function's behavior. For example, you can enable Direct VPC, configure GPUs, use volume mounts, and more.

The following table summarizes the configuration differences for functions:

Cloud Run functions Cloud Run functions (1st gen) Request timeout Instance size Up to 16 GiB RAM with 4 vCPU Up to 8 GB RAM with 2 vCPU Concurrency Up to 1000 concurrent requests per function instance 1 concurrent request per function instance Traffic splitting Supported Not supported Deployment

Since August 2024, you can use Cloud Run to deploy and manage functions created with the Cloud Functions v2 API. As a result of this change:

However, note that functions created with the Cloud Run Admin API cannot be modified with the Cloud Functions API.

The following table summarizes the differences in how you create, deploy, edit, and manage functions:

Triggers and retries

The following table compares triggers and retries for functions:

Cloud Run functions Cloud Run functions (1st gen) Trigger and invoke a function For function created with the Cloud Run Admin API, you specify triggers as part of deploying the function in the Google Cloud console or after deploying the function when using the gcloud CLI.

For functions created with the Cloud Functions v2 API, you specify triggers as part of function deployment.

You specify triggers as part of function deployment. Event types Support for any event type supported by Eventarc, including 90+ event sources through Cloud Audit Logs. Direct support for events from 7 sources. Retries For functions created with the Cloud Run Admin API, update the retry policy in Eventarc and configure dead-letter topic in Pub/Sub.

For functions created with the Cloud Functions v2 API, you specify retries as part of function deployment with the --retry flag.

You specify retries as part of function deployment with the --retry flag. Detach your function

Functions created using the Cloud Functions v2 API (for example, by using gcloud functions, the REST API, or Terraform) can be detached from its existing API environment. After you detach a function, you can only manage it using the Cloud Run Admin API. You might want to do this if your workloads need to stay within the run.googleapis.com API boundary for Assured Workloads, or to ensure that your workloads use the Cloud Run SKU. See Manage functions to learn more.

What's next

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-08-07 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4