dgraph
high-performance graph database for real-time use cases
What is dgraph?
high-performance graph database for real-time use cases
Overview of dgraph
What it is
Dgraph is a horizontally scalable and distributed GraphQL database with a graph backend. It provides ACID transactions, consistent replication, and linearizable reads. It is built from the ground up to perform a rich set of queries. Being a native GraphQL database, it tightly controls how data is arranged on disk to optimize for query performance and throughput, reducing disk seeks and network calls in a cluster. Dgraph is written using the Go programming language.
Key features
- Horizontally scalable and distributed architecture
- ACID transactions with consistent replication and linearizable reads
- Native GraphQL query syntax with responses in JSON and Protocol Buffers over GRPC and HTTP
- Automatic data movement for shard rebalancing
- Native support for full-text search, regular expressions, and geo search
- Supports Linux/amd64 and Linux/arm64 platforms; recommended deployment via Docker
Use cases
Dgraph is suitable for applications that have more than 10 SQL tables connected via foreign keys, sparse data that does not elegantly fit into SQL tables, or a need for a simple and flexible schema that is readable and maintainable over time. It is designed for real-time user queries over terabytes of structured data and is used in production at multiple Fortune 500 companies.
Getting started
Install with Docker:
docker pull dgraph/dgraph:latest
Run a quick standalone cluster:
docker run -it -p 8080:8080 -p 9080:9080 -v ~/dgraph:/dgraph dgraph/standalone:latest
Install from source (requires Go 1.27+):
git clone https://github.com/dgraph-io/dgraph.git
cd dgraph
make setup
make install
License and pricing
Dgraph is licensed under Apache 2.0 and is open source. No pricing information is provided beyond being open source.
Based on the project's public README and repository metadata.