Shortcuts: Alt+H home · Alt+/ search · Alt+G top
Saved in this browser only.
Event-driven functions (formerly Cloud Functions) that run on Cloud Run from source code.
Choose Cloud Run functions for small pieces of event-driven code: reacting to Cloud Storage uploads, Pub/Sub messages, Firestore changes and other Eventarc events, or simple HTTP endpoints and webhooks. You deploy source in a supported runtime and Google builds and runs it on Cloud Run, scaling to zero when idle.
Avoid functions for full applications with many routes, custom binaries or long-running work — deploy a Cloud Run service or job instead. Steady high-throughput workloads can cost less on instances with committed use discounts.
| Hosting model | FaaS |
|---|---|
| Container support | Container-compatible |
| Minimum nodes | Serverless |
| State management | Stateless |
| Web hosting | Built-in HTTPS endpoint |
| Autoscaling | Built-in, per request or event |
| Load balancer | Integrated |
| Scale limit | 100 instances per function by default, configurable up to the region's quota; up to 1,000 concurrent requests per instance |
| Multiregion | Single region — deploy in each region behind a global load balancer |
| Virtual network integration | Supported (Direct VPC egress or Serverless VPC Access) |
| Hybrid connectivity | Through the VPC (Cloud VPN, Cloud Interconnect) |
| GPU support | Use Cloud Run services for GPU workloads |
| TLS | Supported |
| Architecture styles | Microservices, event-driven architecture |
| Required skills | Programming in a supported runtime, event-driven design |
| Operational overhead | Low — no servers to manage |
| Best for teams | Developers building event-driven or API workloads |
Cloud Functions (2nd gen) became Cloud Run functions in 2024: functions now deploy as Cloud Run services, with Cloud Run's pricing, concurrency, timeouts and networking. 1st gen functions are legacy.
HTTP functions can run for up to 60 minutes per request; event-driven functions up to 9 minutes. For longer batch work use Cloud Run jobs or Batch.
Yes, when scaling from zero. Set a minimum number of instances for latency-sensitive functions, and use instance concurrency so one instance handles many requests.
This is one candidate from the Google Cloud compute decision wizard. The right choice depends on your full requirements — evaluate scaling, cost, and operational fit before committing.
Run the Google Cloud wizard →