Key takeaway
- How GCP serverless works today: Cloud Run, Cloud Run functions, billing, IAM and logging, with a decision table and when not to use serverless.
Google Cloud serverless means you hand Google the servers and scaling, and you deploy code or containers. In practice the centre of the platform today is Cloud Run, which Google describes as a fully managed application platform for running your code, function or container. Functions are now part of it: Cloud Functions (2nd gen) is named Cloud Run functions, and they are deployed as services on Cloud Run (Google comparison page).
For enterprise teams the real questions are which product to pick for which workload, how billing behaves, and how access and logs are controlled. This guide answers those, with every product fact taken from Google Cloud documentation read on 13 November 2026. Product names change, so confirm on the official page before you plan a migration. For the general idea, see our serverless computing overview; for the other clouds see AWS serverless and Azure serverless.
What does serverless mean on Google Cloud today?
Google's serverless page lists Cloud Run for containerised microservices, APIs, background jobs and event-driven functions with automatic scale-to-zero, Cloud Run functions for functions that respond to HTTP calls, Pub/Sub messages and Cloud Audit Logs, and Eventarc, Workflows and Pub/Sub for routing events and multi-step business logic (cloud.google.com/serverless). App Engine remains documented as a platform that runs apps in containers preconfigured with a runtime (App Engine standard overview).
The common thread is that you do not size or patch servers. You choose a deployment unit (source code, function or container image), and the platform runs sandboxed instances and adds or removes them with demand.
Which Google Cloud serverless product fits which workload?
| Product | What it runs | When it fits | Status (as read 13 Nov 2026) |
|---|---|---|---|
| Cloud Run services | Stateless containers answering HTTP requests at a stable endpoint | Websites, APIs, microservices, streaming data processing, AI inference | Current; autoscaling or manual scaling |
| Cloud Run functions | Functions deployed as Cloud Run services, triggered by HTTP, Pub/Sub or Cloud Audit Logs | Small event handlers and glue code | Current name of Cloud Functions (2nd gen) |
| Cloud Run jobs | Parallelisable tasks that run to completion | Scripts, array jobs, scheduled and batch work | Current; run manually or on a schedule |
| Cloud Run worker pools | Always-on background consumers, for example Kafka, Pub/Sub or RabbitMQ | Pull-based queue consumers with no HTTP endpoint | Current; does not autoscale by default |
| Eventarc, Workflows, Pub/Sub | Event routing and multi-step orchestration | Connecting services and sequencing steps | Current |
| Cloud Run functions (1st gen) | Original functions on Google internal infrastructure | Existing functions not yet migrated | Documented; no end-of-life date stated on the comparison page; upgrade guide available |
| App Engine standard | Apps in containers with a preconfigured runtime (Go, Java, Node.js, PHP, Python, Ruby) | Existing App Engine apps | Documented; check the migration pages before new builds |
Source: Cloud Run overview and functions comparison. The Cloud Run page also lists a long-lived instance type as Preview, so check its stage before depending on it.

How do Cloud Run functions differ from the original Cloud Functions?
According to Google, 1st gen is the original version with limited event triggers, runtimes and configurability, while 2nd gen runs on Cloud Run infrastructure. The comparison page gives these limits (source):
| Capability | 1st gen | 2nd gen (Cloud Run functions) |
|---|---|---|
| HTTP request timeout | Up to 9 minutes | Up to 60 minutes (9 minutes for event-driven) |
| Memory and CPU | Up to 8 GB and 2 vCPU | Up to 16 GiB and 4 vCPU |
| Concurrent requests per instance | One | Up to 1,000 |
| Traffic splitting | No | Yes |
| Event sources | Direct support for 7 sources | Any Eventarc event type |
Since August 2024, Cloud Run can also deploy and manage functions created with the Cloud Functions v2 API. Google recommends the Cloud Run Admin API for creating functions, and functions created that way cannot be modified through the Cloud Functions API. Plan your tooling around that.
How does billing work, and what causes surprise cost?
Cloud Run bills vCPU-seconds and GiB-seconds, rounded up to the nearest 100 milliseconds. With request-based billing you pay while an instance is starting, shutting down or handling at least one request, and requests are billed per million. With instance-based billing you pay for the whole instance lifetime, with a minimum of 1 minute. Jobs are billed at the instance-based rate (Cloud Run pricing).
Three cost points matter for architects. First, minimum instances avoid cold starts but are billable, at a lower idle rate under request-based billing (minimum instances). Second, higher concurrency lets requests share an instance, which can lower billable usage; the maximum is 1,000 per instance (concurrency). Third, source deployments and functions also incur Cloud Build and Artifact Registry charges, billed separately. Free-tier amounts and prices vary by region and change, so read the pricing page rather than a blog table.
How does Google Cloud serverless compare with AWS Lambda?
Older comparisons of languages, network speed and price between Lambda and Google functions are out of date, because both platforms have changed and the Google side is now Cloud Run. We do not repeat them. Compare on current vendor pages for your region and workload: supported runtimes or container support, maximum timeout, concurrency model, event sources, identity model and billing granularity. For the AWS side, start with our AWS serverless guide. A fair test is a representative workload run on both, measured by you.
How do you secure and observe serverless workloads on Google Cloud?
Cloud Run services are deployed privately by default and are enforced through IAM; by default only Project Owners, Editors, Cloud Run Admins and Cloud Run Invokers can call them. You can allow unauthenticated calls to make a service public (authentication overview). Treat public access as an explicit exception, reviewed like any other.
For observability, Cloud Run sends request logs, container logs and system logs to Cloud Logging without a separate agent. Structured JSON lines land in jsonPayload, and a trace field lets you correlate container logs with request logs (Cloud Run logging). For DevOps delivery on Google Cloud, see our GCP DevOps pipeline guide and GCP infrastructure as code guide.
How do agents change serverless design?
AI agents call tools, and many of those tools are small services or functions. Cloud Run lists AI inference among its service use cases and, on its overview page, long-lived AI agents as an Instance use case (Preview). The governance question is then who may call which function and with what context. ElixirData Context OS keeps governed context, versioned policy and decision traces in one decision layer above AI agents, and ElixirClaw is an agentic OS platform to build, orchestrate and govern AI agents and automation workflows while keeping humans in control (both according to their own sites).
When should you not choose serverless?
- Instances are disposable and the writable filesystem is in memory and lost on shutdown, so state must live in Cloud Storage, a database or NFS (source).
- Scale to zero means the first request after idle can add latency; avoiding that costs money through minimum instances.
- Always-on, steady, high-utilisation workloads may be cheaper on instance-based billing, committed use discounts or Kubernetes, so model both.
- If you need cluster-level control, see our Kubernetes architecture guide.
What is a sensible adoption sequence?
- Inventory existing functions and App Engine apps, and note which are 1st gen.
- Pick one stateless service and one scheduled job as pilots on Cloud Run.
- Set IAM, logging and budget alerts before the first production release.
- Tune concurrency and minimum instances against measured latency and cost.
- Migrate the remaining functions using Google's upgrade guide, and review the plan each quarter as product names change.
To map one serverless decision your agents should make, and the context and policy it depends on, book a Context Workshop. See what happens in the workshop.
Frequently asked questions
What is Google Cloud serverless computing?
It is a set of managed Google Cloud products, centred on Cloud Run, where you deploy code, functions or containers and Google runs and scales the instances. Cloud Run scales a service to zero when it has no requests.
Is Cloud Functions the same as Cloud Run functions?
Google states that Cloud Functions (2nd gen) is now Cloud Run functions, deployed as a service on Cloud Run, and that 1st gen is now called Cloud Run functions (1st gen).
How is Cloud Run billed?
It bills vCPU-seconds and GiB-seconds rounded up to the nearest 100 ms. Request-based billing charges while handling requests, starting or shutting down. Instance-based billing charges for the whole instance lifetime with a 1-minute minimum.
Are Cloud Run services public by default?
No. Google states that all Cloud Run services are deployed privately by default and access is enforced through IAM. You can allow unauthenticated invocations to make one public.
When should I avoid serverless on Google Cloud?
Avoid relying on local state, because the in-memory filesystem is lost on shutdown, and model cost for steady high-utilisation workloads, where instance-based billing or other platforms may suit better.
Follow XenonStack on LinkedIn: XenonStack on LinkedIn for new guides on agentic AI, data and platform engineering.
Explore the XenonStack platform family: ElixirData · ElixirClaw · ElixirHub · NexaStack · MetaSecure · Neural AI · AgentGRC · AgentSRE · AgentAnalyst · AgentInstruct · AgentRAI · AgentScrum · AgentSearch · AgentForce · AI Aviator · SAIF Aviator · CohortIQ · XenonStack AI · XenonStack UAE