GraphScope Flex: LEGO-like Graph Computing Stack

Tao He, Shuxian Hu, Longbin Lai, Dongze Li, Neng Li, Xue Li, Lexiao Liu, Xiaojian Luo, Bingqing Lyu, Ke Meng, Sijie Shen, Li Su, Lei Wang, Jingbo Xu, Wenyuan Yu, Weibin Zeng, Lei Zhang, Siyuan Zhang, Jingren Zhou, Xiaoli Zhou, Diwen ZhuSigmod Conference Companion 2023

Abstract

Graph computing traditionally suffers from fragmentation, forcing developers to choose between "one-size-fits-all" monolithic systems or complex, siloed specialized tools. GraphScope Flex introduces a modular, disaggregated architecture that treats system components—storage, execution engines, and interfaces—as interchangeable "LEGO bricks." By decoupling these layers via a unified interface (GRIN) and intermediate representation (GraphIR), Flex enables the construction of resource-efficient, task-specific stacks. Experimental results demonstrate that this modularity comes with minimal overhead, achieving up to 55.7× speedup over state-of-the-art systems across diverse workloads.

Introduction

The landscape of graph computing is increasingly diverse. Modern organizations frequently require a single data source to support interactive queries (e.g., social network navigation), complex analytics (e.g., PageRank), and Graph Neural Network (GNN) training. Historically, this has led to a "multiplicity" problem: either using a general-purpose system that performs poorly on specialized tasks or maintaining multiple independent systems. The latter results in significant data movement overhead, inconsistent programming models, and complex resource management.

Diverse graph workloads and data sources addressed by GraphScope Flex.

The core challenge lies in the tight coupling between storage formats and processing engines. GraphScope Flex addresses this by proposing a disaggregated stack where components can be independently selected and optimized.

The Modular Architecture

GraphScope Flex is organized into three distinct layers, allowing developers to use the flexbuild utility to compile a customized binary or container image containing only the necessary components.

The three-layer modular architecture of GraphScope Flex, illustrating the "LEGO-like" component assembly.

1. Application Layer

This layer provides high-level interfaces, including Python/Java SDKs and standard query languages like Gremlin and Cypher. A key innovation here is GraphIR, a unified intermediate representation. GraphIR allows different query languages to share a common optimization pipeline, ensuring that improvements in the query optimizer benefit all supported interfaces.

2. Execution Engine Layer

Rather than a single monolithic engine, Flex provides specialized "bricks" tailored for specific computational patterns:

  • HiActor: An actor-based engine optimized for high-concurrency, low-latency OLTP queries.
  • Gaia: A dataflow engine designed for complex, large-scale analytical (OLAP) queries.
  • GRAPE: A high-performance engine for iterative graph analytics.
  • GraphLearn: A specialized engine for GNN sampling and training.

3. Storage Layer and GRIN

The storage layer is decoupled from the engines via the Graph Retrieval INterface (GRIN). GRIN is a language-agnostic, trait-based interface that allows any execution engine to interact with various storage backends, such as Vineyard (in-memory immutable), GART (mutable/dynamic), or GraphAr (archival). This abstraction allows for "predicate pushdown," where filters are executed directly in the storage layer to minimize data transfer.

Performance Evaluation

The system was evaluated using industry-standard benchmarks (LDBC SNB, LDBC Graphalytics) and massive real-world datasets from Alibaba.

Key Results

  • Throughput: In LDBC SNB Interactive tests, Flex achieved 2.45× higher throughput than TuGraph.
  • Analytics: Flex outperformed PowerGraph and Gemini by an average of 25.1× and 2.3×, respectively. On GPU-accelerated tasks, it surpassed Gunrock by up to 9.9×.
  • Optimization Impact: Rule-Based Optimization (RBO) within GraphIR provided up to a 279× speedup for specific query sets by pushing filters into match operations.
  • Real-world Application: In a cybersecurity deployment at Alibaba, the native graph traversals in Flex provided a 2,400× performance gain over traditional SQL-based join operations.

Discussion and Insights

A primary concern with modularity is the potential performance penalty of abstraction layers. However, the authors found that the overhead introduced by GRIN is less than 8% compared to tightly coupled systems. Furthermore, the disaggregated design enables unique optimizations, such as physically isolating CPU-heavy GNN sampling from GPU-heavy training, allowing for independent and cost-effective scaling.

While the "LEGO" approach offers unprecedented flexibility, it shifts some complexity to the user, who must now select the appropriate "bricks" for their specific workload. Future developments aim to automate this selection process and expand the library of available components to support emerging hardware and data models.

Conclusion

GraphScope Flex demonstrates that a modular, disaggregated approach to graph computing is not only feasible but highly performant. By breaking the monolithic design pattern, it provides a flexible toolkit for building the next generation of graph-intensive applications.

Summary updated

BibTeX
@inproceedings{he2023graphscope,
  author = {Tao He and Shuxian Hu and Longbin Lai and Dongze Li and Neng Li and Xue Li and Lexiao Liu and Xiaojian Luo and Bingqing Lyu and Ke Meng and Sijie Shen and Li Su and Lei Wang and Jingbo Xu and Wenyuan Yu and Weibin Zeng and Lei Zhang and Siyuan Zhang and Jingren Zhou and Xiaoli Zhou and Diwen Zhu},
  title = {{GraphScope Flex: LEGO-like Graph Computing Stack}},
  booktitle = {Sigmod Conference Companion},
  year = {2023},
}
Figure