Cloud Run functions
Cloud Run functions (formerly Google Cloud Functions) is a serverless compute service for running event-driven code without managing servers. · Google Cloud · Compute
Overview
Cloud Run functions (Google's rename of Cloud Functions) offers a generous always-free tier for running event-driven serverless code, ideal for lightweight APIs, automation, and prototyping. It is easy to set up and integrates well with other Google Cloud services, but may not suit long-running or resource-intensive workloads.
Good fit
Use when you need to run code in response to events without managing servers, especially for lightweight APIs or automation.
- event-driven workloads
- rapid prototyping
- microservices
- automation
Not a fit
Avoid for long-running processes, heavy compute workloads, or when you need fine-grained control over infrastructure.
- require long-running tasks
- need custom runtimes
- require persistent connections
Quickstart · 5 steps
- Sign in to Google Cloud Console and create a project.
- Enable the Cloud Functions API.
- Install and configure the Google Cloud SDK.
- Write your function code and deploy using the gcloud CLI.
- Test your function by triggering an event or HTTP request.
Other free compute options
Free tierWhat you get freeRiskCard
Cloudflare · Compute
100,000 requests/day · 10ms CPU time/request · Up to 100 Workers per account
Billing risk: None
No card
Vercel · Compute
1,000,000 Edge Requests/month included · 100 GB Fast Data Transfer/month included · 1 team seat on the Hobby plan
Billing risk: None
No card
Vercel · Compute
1,000,000 Function Invocations/month included · 4 hours Fluid Active CPU/month included · 360 GB-hrs Fluid Provisioned Memory/month included
Billing risk: None
No card
Trigger.dev · Compute
$5 compute credits per month · 20 concurrent runs · Unlimited tasks
Billing risk: None
No card