Google Cloud Serverless

Cloud Run functions

Event-driven functions (formerly Cloud Functions) that run code without servers.

What is Cloud Run functions?

Cloud Run functions (formerly Cloud Functions) run small pieces of code in response to HTTP requests or events such as file uploads, Pub/Sub messages and Firestore changes. Google handles servers and scaling.

Key features

  • Node.js, Python, Go, Java, .NET, Ruby and PHP
  • HTTP and event triggers
  • Automatic scaling to zero
  • Built on Cloud Run
  • Secret Manager integration

What it is used for

  • Webhooks and APIs
  • Processing uploads
  • Automation on events

When to use it

  • Webhooks and lightweight APIs
  • Reacting to storage or database events
  • Glue code between services

When something else fits better

  • Large applications with many routes (use Cloud Run services)
  • Long-running jobs

How pricing works

Charged for invocations, compute time and memory, with a monthly free tier. Prices change and differ by region; we confirm current costs for your setup before you commit.

Equivalent on AWS

The closest AWS service is AWS Lambda: runs your code in response to events without servers; you pay only for execution time.

How DomainHostly helps with Cloud Run functions

  • Plan: choose the right setup, size and region for your workload and budget.
  • Set up securely: configure Cloud Run functions with least-privilege access, encryption and backups where they apply.
  • Migrate: move from shared hosting, your own servers or the other cloud with minimal downtime.
  • Run and optimise: monitoring, updates and regular cost reviews so you only pay for what you use.

Serverless: Run code and APIs without managing servers; you pay for what actually runs.

What to consider: Serverless

  • Serverless suits spiky or event-driven work; constant heavy load can be cheaper on servers or containers.
  • Watch time limits, cold starts and concurrency limits for each service.
  • Keep functions small, give each only the permissions it needs, and send logs to central monitoring.

Related services: Serverless