[Paper Review] Nebula Graph: An open source distributed graph database
Nebula Graph is an open-source, distributed, scalable, and native graph database designed for high-performance OLTP workloads on graphs with hundreds of billions of vertices and trillions of edges. It employs a separation of storage and compute, uses Raft for high availability, supports SQL-like query languages (nGQL and openCypher), and achieves millisecond-latency through optimized partitioning, indexing, and query execution, validated via large-scale benchmarks in production environments.
This paper introduces the recent work of Nebula Graph, an open-source, distributed, scalable, and native graph database. We present a system design trade-off and a comprehensive overview of Nebula Graph internals, including graph data models, partitioning strategies, secondary indexes, optimizer rules, storage-side transactions, graph query languages, observability, graph processing frameworks, and visualization tool-kits. In addition, three sets of large-scale graph b
Motivation & Objective
- To design and implement a high-performance, scalable, and natively distributed graph database capable of handling massive graphs with trillions of edges.
- To address the limitations of traditional RDBMS and monolithic graph databases in processing complex, highly connected data at scale.
- To enable real-time OLTP workloads on large graphs through a separation of storage and compute, automated sharding, and strong consistency.
- To support industry-standard query languages (nGQL and openCypher) and provide extensibility for ETL, graph processing, and visualization.
- To deliver production-grade reliability and performance through benchmarking on real-world workloads and large-scale deployments.
Proposed method
- Architects Nebula Core as a distributed system with three independent services: Meta Service (metadata and cluster management), Storage Service (persistent, consistent data storage using Raft), and Graph Service (stateless query execution).
- Uses a property graph model with graph spaces for data isolation, vertices with unique VIDs, tags for labeling, directed edges with types and ranks, and property key-value pairs with SQL-like types.
- Employs a key-value storage abstraction for graph data, partitioning vertices and edges by VID range to enable horizontal scaling and efficient sharding.
- Implements secondary indexes on properties for fast point lookups and range scans, and uses a hybrid execution engine to optimize query plans for complex traversals.
- Leverages the Raft consensus protocol in the Storage Service to ensure strong consistency and high availability across replicas.
- Supports two declarative query languages: nGQL (Nebula-native) and openCypher, with a query optimizer that generates efficient execution plans for OLTP workloads.
Experimental results
Research questions
- RQ1How can a distributed graph database efficiently scale to graphs with hundreds of billions of vertices and trillions of edges while maintaining millisecond-latency responses?
- RQ2What system architecture and partitioning strategy enable high throughput and low-latency OLTP operations in a distributed graph database?
- RQ3How can a native graph database support both SQL-like query languages (nGQL and openCypher) and efficient secondary indexing for property-based queries?
- RQ4What performance and scalability guarantees can be achieved in a production-grade distributed graph database through benchmarking on real-world workloads?
- RQ5How can a graph database be extended to support ETL pipelines, graph processing, and cloud-native deployment with minimal architectural overhaul?
Key findings
- Nebula Graph successfully scales to clusters of up to 100 servers with over 100 terabytes of data, demonstrating production readiness for enterprise workloads.
- The system achieves millisecond-latency response times for complex graph queries, including path finding, neighborhood traversal, and subgraph lookups.
- The separation of storage and compute enables horizontal scaling and high throughput, with the Graph Service handling concurrent queries via multi-threaded, stateless execution.
- The use of Raft-based replication ensures strong consistency and high availability, with automatic leader election and failover in case of node failure.
- Benchmarking results confirm high performance across diverse workloads, including OLTP, graph pattern matching, and property-based lookups, validating the design choices.
- The system has been adopted in production by major enterprises such as Walmart, Tencent, Huawei, and Meituan, confirming real-world scalability and reliability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.