Cloud · head to head
Google Cloud Run vs Xata

Google Cloud Run
Cloud
Managed platform for running containers and functions on Google Cloud
- From
- On request
- Free plan
- No

Xata
Databases
Apache 2.0 platform for running many Postgres instances on Kubernetes, with copy-on-write branching and scale-to-zero.
- From
- Free
- Free plan
- Yes
The short version
- Xata starts at $1/mo; Google Cloud Run prices on request.
- Only Google Cloud Run lists deploy any container image; only Xata lists copy-on-write branching.
- Where Google Cloud Run falls short: runs only on Google Cloud, so there is no self-hosted option.
How do Google Cloud Run and Xata differ?
Google Cloud Run and Xata differ on starting price (On request against Free), free tier (No against Yes) and category (Cloud against Databases). Only the attributes on which Google Cloud Run and Xata actually diverge.
| Attribute | Google Cloud Run | Xata |
|---|---|---|
| Starting price | On request | Free |
| Free tier | No | Yes |
| Category | Cloud | Databases |
Identical on both: pricing model (Usage-based), platforms (Web).
Which features does each one have?
They share no listed features; 9 appear only for Google Cloud Run and 10 only for Xata. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.
Only in Google Cloud Run
- Deploy any container image
- Source-based builds for common languages
- Services with automatic scaling and scale to zero
- Jobs for scheduled or manual tasks
- Worker pools for background processing
- Traffic splitting and rollback between revisions
- Custom domains and managed TLS
- Request-based and instance-based billing
Only in Xata
- Copy-on-write branching
- Scale-to-zero compute
- Compute autoscaling and bin-packing
- High availability with failover
- Point-in-time recovery
- Serverless driver
- pgroll migrations
- pgstream replication
What is each one used for?
Google Cloud Run is most often brought in for hosting web APIs and microservices. The jobs each tool is most often brought in to do.
Google Cloud Run
- Hosting web APIs and microservicesnot Xata
- Scheduled batch jobsnot Xata
- Queue consumers on worker poolsnot Xata
- Deploying containers without managing clustersnot Xata
- Event-driven backends with Pub/Subnot Xata
Xata
- Giving every pull request or coding agent its own branch of the production database, with real data volumes rather than a seeded fixturenot Google Cloud Run
- Running managed-Postgres economics in your own cloud account where data residency or compliance rules out a third-party control planenot Google Cloud Run
- Consolidating many small, mostly idle Postgres databases onto shared infrastructure where scale-to-zero and bin-packing recover the idle costnot Google Cloud Run
- Testing a destructive migration against a copy of production without waiting for a full restore or paying for a duplicate of the storagenot Google Cloud Run
Where do Google Cloud Run and Xata fall short?
Google Cloud Run's most cited limit: runs only on Google Cloud, so there is no self-hosted option. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
Google Cloud Run
- Runs only on Google Cloud, so there is no self-hosted option
- The container file system is in memory and not persistent
- Worker pools do not autoscale natively and need at least one instance
- Services are stateless, so state needs external storage
Xata
- Self-hosting means operating Kubernetes and CloudNativePG, so the Apache 2.0 licence removes the vendor bill but replaces it with a platform team, and a database platform is not something a part-time operator maintains safely
- Copy-on-write branches are cheap to create but diverge as they are written to, so a long-lived branch carrying a heavy backfill quietly accumulates real storage and the cost arrives later than the decision that caused it
- Scale-to-zero means the first connection after an idle period pays a cold start, which is invisible in a busy production database and very visible in a demo, a staging environment or a cron job that runs once an hour
- The Xata sold before 2025 was a different product, a proprietary API and SDK layered over Postgres, so tutorials, blog posts and SDK examples from that era describe something that no longer exists and existing users had to migrate
- As a managed service it competes with RDS, Aurora and Cloud SQL, and it is a much smaller company, so procurement, certification coverage and the depth of the support bench behind a 3am corruption incident are all weaker than the incumbent even though the underlying Postgres is the same
How much do Google Cloud Run and Xata cost?
Xata has a free plan, with paid plans from $1/mo. Plan by plan below, from each vendor's own pricing page.
Google Cloud Run
On requestNo published plan breakdown. See the Google Cloud Run review.
Xata
Free- Free TrialFree
- 14 days free
- No credit card required
- Usage-Based$1
- 1,000 branches for $1
- Scale-to-zero compute model
- Branches hibernate when idle
Which should you pick?
Choose Google Cloud Run if
- You need deploy any container image.
- You also want source-based builds for common languages.
Choose Xata if
- You need copy-on-write branching.
- You want to start without paying.
- You also want scale-to-zero compute.
Questions people ask
- Is Google Cloud Run or Xata better?
- It depends on the job. Google Cloud Run fits hosting web APIs and microservices; Xata fits giving every pull request or coding agent its own branch of the production database, with real data volumes rather than a seeded fixture. Google Cloud Run starts at On request and Xata at Free.
- Which is cheaper, Google Cloud Run or Xata?
- Xata has a free tier; the other does not. Paid plans start at On request for Google Cloud Run and Free for Xata.
- Does Google Cloud Run or Xata run on more platforms?
- Both run on Web, so platform support will not decide this one for you.
- Can I use Xata for free?
- Yes. Xata has a free tier, so you can try it without paying. Google Cloud Run starts at On request.
- What is Google Cloud Run best used for?
- Google Cloud Run is most often used for hosting web apis and microservices, scheduled batch jobs, queue consumers on worker pools, deploying containers without managing clusters. Of those, hosting web apis and microservices and scheduled batch jobs are not what Xata is typically brought in for.
- What can Google Cloud Run do that Xata cannot?
- Google Cloud Run covers Deploy any container image, Source-based builds for common languages, Services with automatic scaling and scale to zero, Jobs for scheduled or manual tasks. Xata covers Copy-on-write branching, Scale-to-zero compute, Compute autoscaling and bin-packing, High availability with failover.
Answered from the vendors’ own pages
Google Cloud Run: What can Cloud Run run?
Any container image, or source code for Go, Node.js, Python, Java.NET and Ruby that Google builds into a container.
SourceXata: Is it real Postgres or a compatible reimplementation?
Real Postgres. It runs upstream Postgres instances on Kubernetes via CloudNativePG, so extensions, the wire protocol and version upgrades behave as they do anywhere else.
Google Cloud Run: How is Cloud Run billed?
Allocated CPU and memory are billed in 100 millisecond granularity, in request-based or instance-based mode. A free tier is available.
SourceXata: Can I self-host the whole thing?
Yes. The platform is Apache 2.0 and designed for self-hosting a large number of Postgres instances on your own Kubernetes. Xata Cloud is the same platform run as a service.
Google Cloud Run: Can Cloud Run scale to zero?
Yes. Services scale to zero when idle unless a minimum number of instances is set.
SourceXata: Does branching copy my data?
No. Branches are copy-on-write at the storage layer, so creating one is near-instant regardless of database size and storage is only consumed as the branch diverges from its parent.
Xata: Is this the same Xata I used a couple of years ago?
No. The earlier product was a proprietary database API with its own SDK and search layer. The current product is a Postgres platform, and material written for the old one does not apply.
Xata: What happens to a branch when the parent changes?
A branch is a point-in-time fork. Later changes on the parent are not propagated, so long-lived branches drift and need to be recreated rather than refreshed if you want current data.
Related pages
More on Google Cloud Run
Other head to heads
- Google Cloud Run vs AWS Lambda
- Google Cloud Run vs Koyeb
- Google Cloud Run vs Azure Functions
- Google Cloud Run vs Heroku
- Google Cloud Run vs Podman
- Google Cloud Run vs minikube
- Google Cloud Run vs K3s
- Google Cloud Run vs Serverless Framework
- Google Cloud Run vs Deno Deploy
- Google Cloud Run vs Beam Cloud
- Google Cloud Run vs CloudAMQP
- Google Cloud Run vs Dokku
- Google Cloud Run vs Lambda
- Google Cloud Run vs Buildah
- Google Cloud Run vs containerd
- Google Cloud Run vs Skopeo
- Google Cloud Run vs Flux
- Google Cloud Run vs kind
- Google Cloud Run vs Neon
- Google Cloud Run vs PlanetScale
- Google Cloud Run vs Amazon Aurora
- Google Cloud Run vs Supabase
- Google Cloud Run vs PostgreSQL
- Google Cloud Run vs Nile
- Google Cloud Run vs DuckDB
- Google Cloud Run vs Trino
- Google Cloud Run vs Convex
- Google Cloud Run vs turbopuffer
- Google Cloud Run vs Apache HBase
- Google Cloud Run vs Microsoft SQL Server
- Google Cloud Run vs OpenSearch
- Google Cloud Run vs Redpanda
- Google Cloud Run vs Upstash
- Google Cloud Run vs DynamoDB
- Google Cloud Run vs Apache Flink
- Google Cloud Run vs Valkey
- Xata vs AWS Lambda
- Xata vs Koyeb
- Xata vs Azure Functions
- Xata vs Heroku
- Xata vs Podman
- Xata vs minikube
- Xata vs K3s
- Xata vs Serverless Framework
- Xata vs Deno Deploy
- Xata vs Beam Cloud
- Xata vs CloudAMQP
- Xata vs Dokku
- Xata vs Lambda
- Xata vs Buildah
- Xata vs containerd
- Xata vs Skopeo
- Xata vs Flux
- Xata vs kind
- Xata vs Neon
- Xata vs PlanetScale
- Xata vs Amazon Aurora
- Xata vs Supabase
- Xata vs PostgreSQL
- Xata vs Nile
- Xata vs DuckDB
- Xata vs Trino
- Xata vs Convex
- Xata vs turbopuffer
- Xata vs Apache HBase
- Xata vs Microsoft SQL Server
- Xata vs OpenSearch
- Xata vs Redpanda
- Xata vs Upstash
- Xata vs DynamoDB
- Xata vs Apache Flink
- Xata vs Valkey
