Softwr

APIs · head to head

Hasura vs Vitess

Hasura logo

Hasura

APIs

GraphQL engine that instantly creates production-ready GraphQL API from databases

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

  • Hasura is an open-source engine.
  • Vitess is free; Hasura starts at $5/mo.
  • Only Hasura lists GraphQL API; only Vitess lists horizontal Sharding.
  • Where Hasura falls short: active model definition: model/command accessed more than 1,000 times monthly.
  • Where Vitess falls short: VTGate scatter queries without sharding key incur significant performance penalties.

How do Hasura and Vitess differ?

Hasura and Vitess differ on platforms, category (APIs against Databases) and year founded (2017 against 2010). Only the attributes on which Hasura and Vitess actually diverge.

Attributes where Hasura and Vitess differ
AttributeHasuraVitess
PlatformsWebLinux, macOS, Self-hosted
CategoryAPIsDatabases
Founded20172010

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

Not yet recorded: pricing model for Vitess.

Which features does each one have?

They share 3 listed features; 8 appear only for Hasura and 12 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 Hasura

  • GraphQL API
  • Real-time subscriptions
  • Access control
  • PostgreSQL
  • Webhooks
  • REST APIs
  • Cloud support
  • Self-hosted support

Only in Vitess

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

Both cover

  • MySQL
  • Docker support
  • Kubernetes support

What is each one used for?

Hasura is most often brought in for automatic GraphQL API generation from existing databases; Vitess for transaction processing. The jobs each tool is most often brought in to do.

Hasura

  • Automatic GraphQL API generation from existing databasesnot Vitess
  • Real-time data subscriptions for modern applicationsnot Vitess
  • Backend infrastructure for web and mobile applicationsnot Vitess
  • Event-triggered webhooks for database changesnot Vitess

Vitess

  • Transaction processingnot Hasura
  • Data storagenot Hasura
  • Application backendnot Hasura
  • Reportingnot Hasura
  • Data analyticsnot Hasura

Where do Hasura and Vitess fall short?

Hasura's most cited limit: active model definition: model/command accessed more than 1,000 times monthly. 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.

Hasura

  • Active model definition: model/command accessed more than 1,000 times monthly
  • Private DDN requires Base or Advanced plan
  • Free DDN plan allows 1 supergraph developer; unlimited developers need the Base plan or above
  • Free plan keeps traces and API performance metrics for only 15 minutes, against 30 days on paid plans

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

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

Hasura

Free
  • DDN FreeFree
    • Unlimited models
    • 1 supergraph developer
    • 15-minute observability retention
  • DDN Base$5/mo
    • Per active model billing
    • Unlimited developers
    • 30-day observability retention
  • DDN Advanced$30/mo
    • Per active model billing
    • Federated collaboration
    • Multi-repo CI/CD

Vitess

Free
  • Open source (Apache-2.0)Free

Which should you pick?

Choose Hasura if

  • You need graphql api.
  • You want to start without paying.
  • You also want real-time subscriptions.

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 Hasura or Vitess better?
It depends on the job. Hasura fits automatic GraphQL API generation from existing databases; Vitess fits transaction processing. Hasura starts at Free and Vitess at Free.
Which is cheaper, Hasura or Vitess?
Hasura starts at Free and Vitess at Free.
Does Hasura or Vitess run on more platforms?
Hasura runs on Web. Vitess runs on Linux, macOS, Self-hosted.
Can I use Hasura for free?
Both have a free tier, so you can try either at no cost before committing.
What is Hasura best used for?
Hasura is most often used for automatic graphql api generation from existing databases, real-time data subscriptions for modern applications, backend infrastructure for web and mobile applications, event-triggered webhooks for database changes. Of those, automatic graphql api generation from existing databases and real-time data subscriptions for modern applications are not what Vitess is typically brought in for.
What can Hasura do that Vitess cannot?
Hasura covers GraphQL API, Real-time subscriptions, Access control, PostgreSQL. Vitess covers Horizontal Sharding, Connection Pooling, Query Routing, Online Schema Changes. Both handle MySQL, Docker support, Kubernetes support.

Answered from the vendors’ own pages

Hasura: How much does Hasura cost?

Hasura DDN Free is free. DDN Base starts at $5/active model/month, and DDN Advanced starts at $30/active model/month.

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
Hasura: What is an active model in Hasura pricing?

An active model is defined as any model or command accessed more than 1,000 times monthly.

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
Hasura: Is there a free version of Hasura?

Yes, Hasura DDN Free is always free and includes unlimited models, 1 supergraph developer, and 15-minute observability retention.

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