High-performance graph database for real-time use cases
open sourceApache-2.0self-hostablefree
Dgraph is a horizontally scalable, distributed graph database with a native GraphQL API. It shards and replicates data across a cluster with ACID transactions, consistent replication and linearizable reads, and lays data out on disk by predicate to cut disk seeks and network calls in queries over terabytes. It can be used as a property graph database through its own query language, DQL, or generate a GraphQL API and backend straight from a GraphQL schema. Clients talk to it over gRPC or HTTP and get JSON or Protocol Buffers back, with official client libraries for Go, Python, Java, C# and JavaScript, and Ratel as its web UI. It's written in Go and licensed Apache-2.0.
Problems it solves
- join-heavy queries across deeply connected data are too slow in our relational database
- generate a GraphQL API and backend directly from a GraphQL schema
- a graph database that shards across many machines instead of one big server
- build a knowledge graph over terabytes of structured data and query it in real time
- a graph database with ACID transactions and consistent replication
- open source graph database under Apache 2.0 without enterprise-only replication
- traverse relationships many hops deep for recommendations or fraud detection
- a flexible schema for connected data that's readable and maintainable over time
Features
- native GraphQL API generated from a schema
- DQL query language
- horizontal sharding and consistent replication
- ACID transactions and linearizable reads
- gRPC and HTTP interfaces, JSON and Protocol Buffers responses
- official clients for Go, Python, Java, C# and JavaScript
- Ratel web UI
- automatic predicate rebalancing across groups
Limitations
- Doesn't officially support macOS or Windows: only Linux on amd64 and arm64, with Docker recommended1
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Has official SDKs | plan not known |
Alternatives
The same job
These do what Dgraph does.
- ArangoDB A scalable multi-model database for graphs, documents, key-values and search
- Neo4j The knowledge layer that makes AI accurate
- JanusGraph Distributed, open source, massively scalable graph database
- NebulaGraph A distributed, scalable, lightning-fast graph database
- SurrealDB A multi-model database built in Rust that unifies document, graph, relational, time-series, geospatial and key-value data
- ArcadeDB Open source multi-model database for graphs, documents, key/value, search, vectors and time series, with a built-in MCP server
