Skip to main content
XenonStack

Serverless

XenonStack Blog GCP Serverless Computing: Cloud Run and Functions

and | Published | Updated

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?

ProductWhat it runsWhen it fitsStatus (as read 13 Nov 2026)
Cloud Run servicesStateless containers answering HTTP requests at a stable endpointWebsites, APIs, microservices, streaming data processing, AI inferenceCurrent; autoscaling or manual scaling
Cloud Run functionsFunctions deployed as Cloud Run services, triggered by HTTP, Pub/Sub or Cloud Audit LogsSmall event handlers and glue codeCurrent name of Cloud Functions (2nd gen)
Cloud Run jobsParallelisable tasks that run to completionScripts, array jobs, scheduled and batch workCurrent; run manually or on a schedule
Cloud Run worker poolsAlways-on background consumers, for example Kafka, Pub/Sub or RabbitMQPull-based queue consumers with no HTTP endpointCurrent; does not autoscale by default
Eventarc, Workflows, Pub/SubEvent routing and multi-step orchestrationConnecting services and sequencing stepsCurrent
Cloud Run functions (1st gen)Original functions on Google internal infrastructureExisting functions not yet migratedDocumented; no end-of-life date stated on the comparison page; upgrade guide available
App Engine standardApps in containers with a preconfigured runtime (Go, Java, Node.js, PHP, Python, Ruby)Existing App Engine appsDocumented; 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.

Two-column diagram mapping four workloads (HTTP API, event handler, batch task, queue consumer) to Cloud Run service, functions, job and worker pool.

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):

Capability1st gen2nd gen (Cloud Run functions)
HTTP request timeoutUp to 9 minutesUp to 60 minutes (9 minutes for event-driven)
Memory and CPUUp to 8 GB and 2 vCPUUp to 16 GiB and 4 vCPU
Concurrent requests per instanceOneUp to 1,000
Traffic splittingNoYes
Event sourcesDirect support for 7 sourcesAny 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?

  1. Inventory existing functions and App Engine apps, and note which are 1st gen.
  2. Pick one stateless service and one scheduled job as pilots on Cloud Run.
  3. Set IAM, logging and budget alerts before the first production release.
  4. Tune concurrency and minimum instances against measured latency and cost.
  5. 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.

Table of Contents

navdeep-singh-gill

Navdeep Singh Gill

Global CEO and Founder of XenonStack

LinkedIn profile

Navdeep Singh Gill is serving as Chief Executive Officer and Product Architect at XenonStack. He holds expertise in building SaaS Platform for Decentralised Big Data management and Governance, AI Marketplace for Operationalising and Scaling. His incredible experience in AI Technologies and Big Data Engineering thrills him to write about different use cases and its approach to solutions.

Get the latest articles in your inbox

Subscribe Now

Interested in solving your challenges with the XenonStack team?
Get Started

Tell us about you and your priorities so we can prepare the right conversation. It takes about 2 minutes.

Please Select your Industry
Banking
Fintech
Payment Providers
Wealth Management
Discrete Manufacturing
Semiconductor
Machinery Manufacturing / Automation
Appliances / Electrical / Electronics
Elevator Manufacturing
Defense & Space Manufacturing
Computers & Electronics / Industrial Machinery
Motor Vehicle Manufacturing
Food and Beverages
Distillery & Wines
Beverages
Shipping
Logistics
Mobility (EV / Public Transport)
Energy & Utilities
Hospitality
Digital Gaming Platforms
SportsTech with AI
Public Safety - Explosives
Public Safety - Firefighting
Public Safety - Surveillance
Public Safety - Others
Media Platforms
City Operations
Airlines & Aviation
Defense Warfare & Drones
Robotics Engineering
Drones Manufacturing
AI Labs for Colleges
AI MSP / Quantum / AGI Institutes
Retail Apparel and Fashion

Continue