Skip to main content
QUICK REVIEW

[Paper Review] GraphX: Unifying Data-Parallel and Graph-Parallel Analytics

Reynold Xin, Daniel Crankshaw|arXiv (Cornell University)|Feb 11, 2014
Graph Theory and AlgorithmsComputer Science22 references57 citations
TL;DR

GraphX unifies data-parallel and graph-parallel computation in a single framework by modeling graphs as collections of vertices and edges, enabling efficient execution of both graph algorithms and data-parallel operations within a single system. It achieves performance comparable to specialized graph systems while supporting end-to-end graph analytics pipelines with minimal data movement and improved developer productivity.

ABSTRACT

From social networks to language modeling, the growing scale and importance of graph data has driven the development of numerous new graph-parallel systems (e.g., Pregel, GraphLab). By restricting the computation that can be expressed and introducing new techniques to partition and distribute the graph, these systems can efficiently execute iterative graph algorithms orders of magnitude faster than more general data-parallel systems. However, the same restrictions that enable the performance gains also make it difficult to express many of the important stages in a typical graph-analytics pipeline: constructing the graph, modifying its structure, or expressing computation that spans multiple graphs. As a consequence, existing graph analytics pipelines compose graph-parallel and data-parallel systems using external storage systems, leading to extensive data movement and complicated programming model. To address these challenges we introduce GraphX, a distributed graph computation framework that unifies graph-parallel and data-parallel computation. GraphX provides a small, core set of graph-parallel operators expressive enough to implement the Pregel and PowerGraph abstractions, yet simple enough to be cast in relational algebra. GraphX uses a collection of query optimization techniques such as automatic join rewrites to efficiently implement these graph-parallel operators. We evaluate GraphX on real-world graphs and workloads and demonstrate that GraphX achieves comparable performance as specialized graph computation systems, while outperforming them in end-to-end graph pipelines. Moreover, GraphX achieves a balance between expressiveness, performance, and ease of use.

Motivation & Objective

  • To address the inefficiency and complexity of composing separate data-parallel and graph-parallel systems in graph analytics pipelines.
  • To unify graph-parallel and data-parallel computation into a single, composable framework without data duplication or movement.
  • To design a minimal, expressive set of graph operators that can express Pregel and PowerGraph abstractions while remaining compatible with relational algebra.
  • To enable end-to-end graph analytics—construction, transformation, computation, and analysis—within a single system.
  • To leverage existing data-parallel optimization techniques, such as join rewrites and incremental view maintenance, for efficient graph computation.

Proposed method

  • GraphX models graphs as collections of vertices and edges stored in distributed, horizontally partitioned datasets, with auxiliary index structures for efficient access.
  • It introduces a core set of graph-parallel operators, including subgraph and mrTriplets, that enable edge-centric computation and transformation.
  • Graph computation is expressed as a sequence of relational algebra operations, particularly joins and aggregations, mapping to the Scatter-Gather phases of the GAS abstraction.
  • The system uses automatic join rewrites and distributed routing tables to optimize join performance, mimicking join site selection in distributed databases.
  • It applies incremental view maintenance techniques to reuse intermediate results across iterative graph algorithms, reducing redundant computation.
  • GraphX integrates with data-parallel engines like Spark, allowing seamless composition of data-parallel and graph-parallel operations on the same data.

Experimental results

Research questions

  • RQ1Can a unified system efficiently express both data-parallel and graph-parallel workloads without sacrificing performance?
  • RQ2Can a minimal set of graph operators be designed to express existing graph-parallel abstractions like Pregel and PowerGraph while remaining compatible with relational algebra?
  • RQ3To what extent can optimization techniques from data-parallel systems, such as join rewrites and incremental view maintenance, be adapted to accelerate graph computation?
  • RQ4How does the performance of a unified system compare to specialized graph-parallel systems in end-to-end graph analytics pipelines?
  • RQ5Can the integration of graph and data-parallel abstractions reduce data movement and improve developer productivity in real-world graph analytics workflows?

Key findings

  • GraphX achieves performance comparable to specialized graph-parallel systems like Pregel and PowerGraph on iterative graph algorithms such as PageRank and connected components.
  • In end-to-end graph analytics pipelines, GraphX outperforms composed systems that rely on external storage between data-parallel and graph-parallel stages.
  • The system enables seamless composition of data-parallel and graph-parallel operations within a single framework, reducing the need for data shuffling and custom data interchange formats.
  • GraphX successfully implements the Pregel and PowerGraph abstractions using only a small set of core operators, demonstrating the expressiveness of its narrow-waist design.
  • The integration of relational algebra and join optimization techniques enables efficient execution of graph computations, particularly through reuse of intermediate join results across iterations.
  • An industrial user reported a two-orders-of-magnitude speedup over their prior graph analytics pipeline after deploying GraphX, validating its real-world performance benefits.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.