Serverless Functions

Event-driven code execution.

Write and deploy functions that scale automatically from zero to millions of invocations. Pay only for compute time consumed — no idle costs.

ƒEXECUTE🌐HTTP Request📡Pub/Sub Topic🪣Cloud StorageEventarcDatabaseAPI ResponseNo ServersMillisecond Billing

< 100 ms

Cold start

12+ runtimes

Languages

0 to ∞

Scale

Per-ms

Billing

Functions that just work.

Write code, deploy, and forget about infrastructure.

Sub-100ms cold starts

SnapStart technology pre-warms function instances. Cold starts under 100ms for Java, Node.js, Python, and Go.

12+ language runtimes

Node.js, Python, Go, Java, Rust, Ruby, .NET, PHP, and custom runtimes via OCI containers.

Event integrations

Trigger from HTTP, Pub/Sub, Cloud Storage, databases, queues, and 50+ event sources.

VPC connectivity

Functions run inside your VPC with access to private databases and internal services.

Local development

Full local emulator for testing functions before deployment. Hot reload and step debugging.

Multi-region deploy

Deploy functions to multiple regions for low-latency global coverage. Automatic failover.

Getting started

Launch your first instance in three steps. CLI, console, or API — your choice.

Terminal
// index.ts
export async function handler(req, res) {
  const name = req.query.name || "World";
  res.json({ message: `Hello ${name}!` });
}

Event-driven everything.

APIs, webhooks, and data processing — all serverless.

Serverless API backends

Build REST and GraphQL APIs that scale automatically. No servers to manage.

View tutorial

Suggested configuration

Node.js 20 · HTTP trigger · Auto-scale

Estimate your costs

Create detailed configurations to see exactly how much your architecture will cost. Pay for what you use, down to the second.

Configuration 1

Estimated: $0.00/mo

Performance Allocation

Traffic Volume

M

Connectivity

Provisioned ConcurrencyEliminate cold starts for $0.015/hr
Config 1 cost$0.00

Cost details

$NaN

First 2 million invocations and 400,000 GB-seconds per month are free.

Configuration 1
$NaN
Invocations$0.60
Network Egress$1.20
Free Tier DeductionApplied

Works seamlessly with

API Gateway
Cloud SQL
Pub/Sub
Cloud Monitoring
IAM
Cloud Logging

Frequently asked questions

Ship faster with serverless.

Deploy functions in seconds. Scale to millions. Pay per millisecond.