Google Cloud Functions logo

Google Cloud Functions

Event-Driven Functions for Cloud Apps

Google Cloud Functions Overview

Core Product

Functions
Free Tier Free Trial

Information Resources

Google Cloud Functions Homepage
Google Cloud Functions Homepage

What is Google Cloud Functions?

Asking if Google offers serverless functionality, is like asking if water is wet. Of course, the behemoth has a FaaS platform. In the early days of cloud, Google was one of the pioneers in the pay-as-you-go space with their Platform as a Service, App Engine.

In 2017, Google Cloud Platform (GCP) launched their serverless execution environment Cloud Functions, which they renamed in August 2024 to Cloud Run functions.

Focus

Cloud Run functions integrates with various Google Cloud services and supports multiple programming languages. It includes automatic scaling in an event-driven architecture, where functions are triggered by events from other Google Cloud services and third-party tools.

Additionally, Cloud Run functions is fully managed and has the option to import third-party dependencies, making it a versatile choice for building serverless applications.

Two Generations of Google Cloud functions

The first generation functions is the original version with limited event triggers, configurability and does not support concurrency.

The second generation functions deploys your function as services on Cloud Run. These functions have access to all of Cloud Run’s capabilities, including:

  • Multi-event trigger management on functions
  • Mounting Cloud Storage volumes
  • Traffic splitting between multiple revisions
  • Inference functions with NVIDIA GPUs
  • Configuring CPU allocation separate from memory

Service Types

Functions
Available

Functions Runtimes

.NET Core
Available
C#
Available
Go
Available
Java
Available
JavaScript
Available
Node.js
Available
PHP
Available
Python
Available
Ruby
Available

Execution Limits and Resource Quotas

Min. Memory
128 MB
Max. Memory
8 GB / 32 GiB
Default Timeout
60 sec
Max. Timeout
9 min / 60 min
Request Payload
10 MB / 32 MB
Response Payload
10 MB / 32 MB

Free Trial

  • New customers recieve a 90 day $300 in free credits to run, test, and deploy workloads.

Free Tier* **

  • Invocations: 2 million per month
  • Computing: 200,000 GHz-seconds per month
  • Memory: 400,000 GB-seconds per month
  • Networking: 5 GB of outbound data transfer per month

Pricing Model

First generation functions

Pricing is based on invocations, compute time, and networking beyond the Free Tier. Outbound Data to Google APIs in the same region and inbound data is free.* ** More details here.

  • Invocations: $0.40 per million
  • Computing: $0.0000100 per GHz-second
  • Memory: $0.0000025 per GB-second
  • Networking: $0.12 per GB of outbound data

Second generation functions

Second generation functions are billed using the pricing model of Google Run.* **

  • Requests: $0.40 per million
  • Computing: $0.00002400 per vCPU-second
  • Memory: $0.00000250 per GiB-second
  • Networking: $0.12 per GB
  • GPU: (NVIDIA-L4) $0.000233 per GPU-second

*Note the mixed use of GiB and GB. Prices are listed for Tier 1 regions and may vary by region.

**Storing function images in Container Registry or Artifact Registry is charged separately. Container Registry is deprecated and will be completely replaced by Artifact Registry in March 2025. Artifact Registry charges $0.10 per GB beyond the first free 0.5GB.

Get an estimate of your project costs with Google Cloud Functions's
An interactive map displaying all 23 Google Cloud Functions datacenters by region.

Alternatives to Google Cloud Functions are generated by matching platform type and supported runtimes