Databases · head to head
Dgraph vs Vitess

Dgraph
Databases
Apache 2.0 distributed graph database written in Go, maintained by Hypermode, queried through GraphQL or its own DQL language.
- From
- Free
- Free plan
- Yes

Vitess
Databases
Scalable database clustering system for horizontal scaling of MySQL
- From
- Free
- Free plan
- Yes
The short version
- Vitess is free; Dgraph starts at $39/mo.
- Only Dgraph lists apache 2.0 licence; only Vitess lists connection Pooling.
- Where Vitess falls short: VTGate scatter queries without sharding key incur significant performance penalties.
How do Dgraph and Vitess differ?
Dgraph and Vitess differ on platforms and year founded (2016 against 2010). Only the attributes on which Dgraph and Vitess actually diverge.
Identical on both: starting price (Free), free tier (Yes), category (Databases).
Not yet recorded: pricing model for Vitess.
Which features does each one have?
They share no listed features; 10 appear only for Dgraph 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 Dgraph
- Apache 2.0 licence
- Generated GraphQL API
- DQL query language
- Predicate sharding
- Raft replication
- Distributed ACID transactions
- Written in Go
- Full-text and geo indexing
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?
Vitess is most often brought in for transaction processing. The jobs each tool is most often brought in to do.
Dgraph
- An application whose core data is a graph, such as permissions, social connections or product relationships, where the frontend already consumes GraphQLnot Vitess
- A knowledge graph that outgrew a single machine and needs storage distributed across nodes without a per-core licence negotiationnot Vitess
- Recommendation or fraud-detection features that traverse several hops at request time, where a relational join chain has become the bottlenecknot Vitess
- Teams that want a graph database they can read, fork and self-host under a permissive licence rather than a source-available onenot Vitess
Vitess
- Transaction processingnot Dgraph
- Data storagenot Dgraph
- Application backendnot Dgraph
- Reportingnot Dgraph
- Data analyticsnot Dgraph
Where do Dgraph and Vitess fall short?
Vitess's most cited limit: 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.
Dgraph
- Sharding is by predicate, so a single very hot predicate lives entirely in one Raft group and cannot be split further; adding nodes does not relieve it and the fix is a data model change
- Stewardship passed from Dgraph Labs to Hypermode after the original company stopped operating independently, so anyone building on it is betting on a second custodian rather than on the original team's roadmap
- The GraphQL layer is generated and opinionated, so anything it does not express drops you into DQL, which is a second language your team must learn and which no other database speaks
- The community is a fraction of Neo4j's, so operational answers, tuning experience, hiring and third-party tooling are all thinner, and unusual failure modes in a Zero and Alpha cluster leave you reading source rather than a forum
- There is no portable graph standard to migrate to; Cypher, Gremlin and SPARQL are all different query models, so the schema and every query is a rewrite if you later leave, and that cost grows with the application
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 Dgraph and Vitess cost?
Dgraph has a free plan, with paid plans from $39/mo; Vitess is free to use. Plan by plan below, from each vendor's own pricing page.
Dgraph
Free- CommunityFree
- Native GraphQL
- Graph queries
- Full-text search
- Cloud$39/mo
- Managed service
- Auto-scaling
- Enterprise support
Vitess
Free- Open source (Apache-2.0)Free
Which should you pick?
Choose Dgraph if
- You need apache 2.0 licence.
- You want to start without paying.
- You work on Linux, macOS, Self-hosted, Web.
- You also want generated graphql api.
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 Dgraph or Vitess better?
- It depends on the job. Dgraph fits an application whose core data is a graph, such as permissions, social connections or product relationships, where the frontend already consumes GraphQL; Vitess fits transaction processing. Dgraph starts at Free and Vitess at Free.
- Which is cheaper, Dgraph or Vitess?
- Dgraph starts at Free and Vitess at Free.
- Does Dgraph or Vitess run on more platforms?
- Dgraph runs on Linux, macOS, Self-hosted, Web. Vitess runs on Linux, macOS, Self-hosted.
- Can I use Dgraph for free?
- Both have a free tier, so you can try either at no cost before committing.
- What is Dgraph best used for?
- Dgraph is most often used for an application whose core data is a graph, such as permissions, social connections or product relationships, where the frontend already consumes graphql, a knowledge graph that outgrew a single machine and needs storage distributed across nodes without a per-core licence negotiation, recommendation or fraud-detection features that traverse several hops at request time, where a relational join chain has become the bottleneck, teams that want a graph database they can read, fork and self-host under a permissive licence rather than a source-available one. Of those, an application whose core data is a graph, such as permissions, social connections or product relationships, where the frontend already consumes graphql and a knowledge graph that outgrew a single machine and needs storage distributed across nodes without a per-core licence negotiation are not what Vitess is typically brought in for.
- What can Dgraph do that Vitess cannot?
- Dgraph covers Apache 2.0 licence, Generated GraphQL API, DQL query language, Predicate sharding. Vitess covers Horizontal Sharding, Connection Pooling, Query Routing, Online Schema Changes.
Answered from the vendors’ own pages
Dgraph: Is Dgraph open source?
Yes. The current repository is Apache 2.0, which is a permissive OSI licence, and the project is at v25 under Hypermode's maintenance.
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.
SourceDgraph: Is it really GraphQL?
It serves a generated GraphQL API, which is real GraphQL for clients. Its native language, DQL, resembles GraphQL syntactically but is Dgraph's own language and is not the GraphQL specification.
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.
SourceDgraph: How does it compare to Neo4j?
Neo4j has the larger ecosystem, Cypher, and far more operational precedent. Dgraph distributes storage across nodes by default and gives you a GraphQL endpoint without writing resolvers. The choice usually turns on whether you need horizontal scale and a GraphQL surface more than you need ecosystem depth.
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.
SourceDgraph: What does a production cluster look like?
At minimum a set of Zero nodes for coordination and a replicated set of Alpha nodes for data, typically three of each for fault tolerance, which is a meaningfully larger operational footprint than a single graph server.
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.
SourceDgraph: Who maintains it now?
Hypermode. Dgraph Labs, the original company, no longer operates it, and that change of custodian is the main non-technical risk to weigh.
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.
SourceRelated pages
Other head to heads
- Dgraph vs ArangoDB
- Dgraph vs Neo4j
- Dgraph vs Azure Cosmos DB
- Dgraph vs SurrealDB
- Dgraph vs Elasticsearch
- Dgraph vs Couchbase
- Dgraph vs Cassandra
- Dgraph vs Aerospike
- Dgraph vs Firebase Realtime Database
- Dgraph vs ScyllaDB
- Dgraph vs FaunaDB
- Dgraph vs RavenDB
- Dgraph vs Nile
- Dgraph vs Readyset
- Dgraph vs SAP HANA
- Dgraph vs Vertica
- Dgraph vs Airtable
- Dgraph vs Supabase
- Dgraph vs Amazon Aurora
- Dgraph vs CockroachDB
- Dgraph vs TiDB
- Dgraph vs YugabyteDB
- Dgraph vs SingleStore
- Dgraph vs MySQL
- Dgraph vs NATS
- Dgraph vs Microsoft Access
- Dgraph vs ClickHouse
- Dgraph vs PostgreSQL
- Dgraph vs RabbitMQ
- Dgraph vs Google Cloud SQL
- Dgraph vs MotherDuck
- Dgraph vs Presto
- Dgraph vs TIBCO Enterprise Message Service
- Dgraph vs VerneMQ
- Dgraph vs Xata
- Vitess vs ArangoDB
- Vitess vs Neo4j
- Vitess vs Azure Cosmos DB
- Vitess vs SurrealDB
- Vitess vs Elasticsearch
- Vitess vs Couchbase
- Vitess vs Cassandra
- Vitess vs Aerospike
- Vitess vs Firebase Realtime Database
- Vitess vs ScyllaDB
- Vitess vs FaunaDB
- Vitess vs RavenDB
- Vitess vs Nile
- Vitess vs Readyset
- Vitess vs SAP HANA
- Vitess vs Vertica
- Vitess vs Airtable
- Vitess vs Supabase
- Vitess vs Amazon Aurora
- Vitess vs CockroachDB
- Vitess vs TiDB
- Vitess vs YugabyteDB
- Vitess vs SingleStore
- Vitess vs MySQL
- Vitess vs NATS
- Vitess vs Microsoft Access
- Vitess vs ClickHouse
- Vitess vs PostgreSQL
- Vitess vs RabbitMQ
- Vitess vs Google Cloud SQL
- Vitess vs MotherDuck
- Vitess vs Presto
- Vitess vs TIBCO Enterprise Message Service
- Vitess vs VerneMQ
- Vitess vs Xata
