Softwr

Cloud · head to head

Google Cloud Run vs Vitess

Google Cloud Run logo

Google Cloud Run

Cloud

Managed platform for running containers and functions on Google Cloud

From
On request
Free plan
No
Vitess logo

Vitess

Databases

Scalable database clustering system for horizontal scaling of MySQL

From
Free
Free plan
Yes

The short version

  • Vitess is free; Google Cloud Run prices on request.
  • Only Google Cloud Run lists deploy any container image; only Vitess lists horizontal Sharding.
  • Where Google Cloud Run falls short: runs only on Google Cloud, so there is no self-hosted option.
  • Where Vitess falls short: VTGate scatter queries without sharding key incur significant performance penalties.

How do Google Cloud Run and Vitess differ?

Google Cloud Run and Vitess differ on starting price (On request against Free), free tier (No against Yes) and platforms. Only the attributes on which Google Cloud Run and Vitess actually diverge.

Attributes where Google Cloud Run and Vitess differ
AttributeGoogle Cloud RunVitess
Starting priceOn requestFree
Free tierNoYes
PlatformsWebLinux, macOS, Self-hosted
CategoryCloudDatabases

Not yet recorded: pricing model for Vitess, founded for Google Cloud Run.

Which features does each one have?

They share no listed features; 9 appear only for Google Cloud Run and 15 only for Vitess. 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 Vitess

  • Horizontal Sharding
  • Connection Pooling
  • Query Routing
  • Online Schema Changes
  • Shard Management
  • Replication Management
  • Automated Failover
  • MySQL

What is each one used for?

Google Cloud Run is most often brought in for hosting web APIs and microservices; Vitess for transaction processing. The jobs each tool is most often brought in to do.

Google Cloud Run

  • Hosting web APIs and microservicesnot Vitess
  • Scheduled batch jobsnot Vitess
  • Queue consumers on worker poolsnot Vitess
  • Deploying containers without managing clustersnot Vitess
  • Event-driven backends with Pub/Subnot Vitess

Vitess

  • Transaction processingnot Google Cloud Run
  • Data storagenot Google Cloud Run
  • Application backendnot Google Cloud Run
  • Reportingnot Google Cloud Run
  • Data analyticsnot Google Cloud Run

Where do Google Cloud Run and Vitess fall short?

Google Cloud Run's most cited limit: runs only on Google Cloud, so there is no self-hosted option. Vitess's: VTGate scatter queries without sharding key incur significant performance penalties. 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

Vitess

  • VTGate scatter queries without sharding key incur significant performance penalties
  • Foreign key constraints not enforced across shards, requiring application-level integrity handling
  • Single primary per keyspace limits multi-region write capabilities
  • Distributed transactions without proper sharding key routing suffer performance degradation

How much do Google Cloud Run and Vitess cost?

Vitess is free to use. Plan by plan below, from each vendor's own pricing page.

Google Cloud Run

On request

No published plan breakdown. See the Google Cloud Run review.

Vitess

Free
  • Open source (Apache-2.0)Free

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 Vitess if

  • You need horizontal sharding.
  • You want to start without paying.
  • You work on Linux, macOS, Self-hosted.
  • You also want connection pooling.

Questions people ask

Is Google Cloud Run or Vitess better?
It depends on the job. Google Cloud Run fits hosting web APIs and microservices; Vitess fits transaction processing. Google Cloud Run starts at On request and Vitess at Free.
Which is cheaper, Google Cloud Run or Vitess?
Vitess has a free tier; the other does not. Paid plans start at On request for Google Cloud Run and Free for Vitess.
Does Google Cloud Run or Vitess run on more platforms?
Google Cloud Run runs on Web. Vitess runs on Linux, macOS, Self-hosted.
Can I use Vitess for free?
Yes. Vitess 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 Vitess is typically brought in for.
What can Google Cloud Run do that Vitess 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. Vitess covers Horizontal Sharding, Connection Pooling, Query Routing, Online Schema Changes.

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.

Source
Vitess: Is Vitess free to use?

Yes. Vitess is completely free and open source under the Apache 2.0 license. It is a graduated CNCF project with no licensing costs or pricing tiers.

Source
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.

Source
Vitess: What databases does Vitess support?

Vitess supports MySQL and MariaDB as backend databases. It acts as a middleware layer that adds sharding and orchestration capabilities on top of these databases.

Source
Google Cloud Run: Can Cloud Run scale to zero?

Yes. Services scale to zero when idle unless a minimum number of instances is set.

Source
Vitess: Does Vitess require Kubernetes to run?

No. Vitess can run on Kubernetes using the Vitess Operator, but it can also be deployed on traditional infrastructure. Kubernetes integration is optional and provides additional automation benefits.

Source
Vitess: How does Vitess handle cross-shard transactions?

Vitess supports distributed transactions across shards, but they require queries to be routed through the sharding key. Transactions without a proper sharding key can result in slower performance.

Source
Vitess: Does Vitess enforce foreign key constraints?

Vitess does not enforce foreign key constraints across shards by default. Referential integrity must be managed at the application layer, though per-database support can be enabled with limitations.

Source
Share

Related pages

Other head to heads