Softwr

Databases · head to head

Cloudflare Workers vs Vitess

Cloudflare Workers logo

Cloudflare Workers

Databases

Serverless compute on Cloudflare's network, free to start and $5 a month minimum on the paid plan

From
Free
Free plan
Yes
Vitess logo

Vitess

Databases

Scalable database clustering system for horizontal scaling of MySQL

From
Free
Free plan
Yes

The short version

  • Vitess is free; Cloudflare Workers starts at $5/mo.
  • Only Cloudflare Workers lists edge execution; only Vitess lists horizontal Sharding.
  • Where Cloudflare Workers falls short: free has a 10 ms CPU cap.
  • Where Vitess falls short: VTGate scatter queries without sharding key incur significant performance penalties.

How do Cloudflare Workers and Vitess differ?

Cloudflare Workers and Vitess differ on platforms. Only the attributes on which Cloudflare Workers and Vitess actually diverge.

Attributes where Cloudflare Workers and Vitess differ
AttributeCloudflare WorkersVitess
PlatformsWeb, Linux, macOS, WindowsLinux, macOS, Self-hosted

Identical on both: starting price (Free), free tier (Yes).

Not yet recorded: pricing model for Vitess, category for Cloudflare Workers, founded for Cloudflare Workers.

Which features does each one have?

They share no listed features; 6 appear only for Cloudflare Workers 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 Cloudflare Workers

  • Edge execution
  • Workers KV
  • Durable Objects
  • Hyperdrive
  • Queues
  • Spend limits

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?

Cloudflare Workers is most often brought in for A low-latency API or middleware; Vitess for transaction processing. The jobs each tool is most often brought in to do.

Cloudflare Workers

  • A low-latency API or middlewarenot Vitess
  • A full-stack app with static assetsnot Vitess
  • A cron-driven data jobnot Vitess
  • Rewriting or protecting traffic at the edgenot Vitess

Vitess

  • Transaction processingnot Cloudflare Workers
  • Data storagenot Cloudflare Workers
  • Application backendnot Cloudflare Workers
  • Reportingnot Cloudflare Workers
  • Data analyticsnot Cloudflare Workers

Where do Cloudflare Workers and Vitess fall short?

Cloudflare Workers's most cited limit: free has a 10 ms CPU cap. 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.

Cloudflare Workers

  • Free has a 10 ms CPU cap
  • The runtime is not full Node.js, so some libraries do not run
  • Costs scale with CPU time, so heavy compute surprises
  • Durable Objects and other products are billed separately
  • Logs and Logpush follow separate observability pricing from December 2026

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 Cloudflare Workers and Vitess cost?

Cloudflare Workers has a free plan, with paid plans from $5/mo; Vitess is free to use. Plan by plan below, from each vendor's own pricing page.

Cloudflare Workers

Free
  • Workers FreeFree
    • 100,000 requests per day
    • 10 ms CPU per invocation
  • Workers Paid$5/mo
    • 10 million requests included, then $0.30 per million
    • 30 million CPU ms included, then $0.02 per million

Vitess

Free
  • Open source (Apache-2.0)Free

Which should you pick?

Choose Cloudflare Workers if

  • You need edge execution.
  • You want to start without paying.
  • You work on Web, Linux, macOS, Windows.
  • You also want workers kv.

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 Cloudflare Workers or Vitess better?
It depends on the job. Cloudflare Workers fits a low-latency API or middleware; Vitess fits transaction processing. Cloudflare Workers starts at Free and Vitess at Free.
Which is cheaper, Cloudflare Workers or Vitess?
Cloudflare Workers starts at Free and Vitess at Free.
Does Cloudflare Workers or Vitess run on more platforms?
Cloudflare Workers runs on Web, Linux, macOS, Windows. Vitess runs on Linux, macOS, Self-hosted.
Can I use Cloudflare Workers for free?
Both have a free tier, so you can try either at no cost before committing.
What is Cloudflare Workers best used for?
Cloudflare Workers is most often used for a low-latency api or middleware, a full-stack app with static assets, a cron-driven data job, rewriting or protecting traffic at the edge. Of those, a low-latency api or middleware and a full-stack app with static assets are not what Vitess is typically brought in for.
What can Cloudflare Workers do that Vitess cannot?
Cloudflare Workers covers Edge execution, Workers KV, Durable Objects, Hyperdrive. Vitess covers Horizontal Sharding, Connection Pooling, Query Routing, Online Schema Changes.

Answered from the vendors’ own pages

Cloudflare Workers: Is Cloudflare Workers free?

Yes, with 100,000 requests a day.

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
Cloudflare Workers: What does Paid cost?

A $5 monthly minimum plus usage.

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
Cloudflare Workers: Are static assets charged?

No, they are free and unlimited.

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