Skip to main content
QUICK REVIEW

[Paper Review] ForkBase: An Efficient Storage Engine for Blockchain and Forkable Applications

Sheng Wang, Tien Tuan Anh Dinh|arXiv (Cornell University)|Feb 14, 2018
Advanced Data Storage TechnologiesComputer Science29 references24 citations
TL;DR

ForkBase is a novel storage engine that natively supports data versioning, fork semantics, and tamper evidence for blockchain and collaborative applications. By using a versioned, content-based index (POS-Tree) and fine-grained deduplication, it achieves high performance and low storage overhead, outperforming state-of-the-art systems in query efficiency, storage consumption, and development simplicity across blockchain, wiki, and analytics workloads.

ABSTRACT

Existing data storage systems offer a wide range of functionalities to accommodate an equally diverse range of applications. However, new classes of applications have emerged, e.g., blockchain and collaborative analytics, featuring data versioning, fork semantics, tamper-evidence or any combination thereof. They present new opportunities for storage systems to efficiently support such applications by embedding the above requirements into the storage. In this paper, we present ForkBase, a storage engine specifically designed to provide efficient support for blockchain and forkable applications. By integrating the core application properties into the storage, ForkBase not only delivers high performance but also reduces development effort. Data in ForkBase is multi-versioned, and each version uniquely identifies the data content and its history. Two variants of fork semantics are supported in ForkBase to facilitate any collaboration workflows. A novel index structure is introduced to efficiently identify and eliminate duplicate content across data objects. Consequently, ForkBase is not only efficient in performance, but also in space requirement. We demonstrate the performance of ForkBase using three applications: a blockchain platform, a wiki engine and a collaborative analytics application. We conduct extensive experimental evaluation of these applications against respective state-of-the-art system. The results show that ForkBase achieves superior performance while significantly lowering the development cost.

Motivation & Objective

  • To address the growing need for storage systems that natively support data versioning, fork semantics, and tamper evidence in modern applications like blockchain and collaborative analytics.
  • To reduce application development complexity by offloading core blockchain and forkable semantics to the storage layer.
  • To improve performance and storage efficiency compared to application-layer or key-value store-based implementations.
  • To enable efficient historical queries and incremental updates through a novel index structure and content-based chunking.

Proposed method

  • ForkBase uses version numbers to uniquely identify data content and its history, enabling fast integrity verification and version retrieval.
  • It splits large objects into chunks and organizes them using a novel POS-Tree, combining content-based slicing, Merkle tree hashing, and B+ -tree indexing for efficient deduplication and lookup.
  • The POS-Tree supports copy-on-write during forking, enabling efficient implicit and explicit forking without redundant data copies.
  • ForkBase provides simple, high-level APIs and supports multiple physical layouts (row and column-oriented) to optimize for query performance and storage efficiency.
  • It enables fine-grained deduplication across versions and forks by hashing and indexing data chunks based on content, reducing storage overhead significantly.

Experimental results

Research questions

  • RQ1Can a storage engine natively support data versioning, fork semantics, and tamper evidence to reduce application-layer complexity and improve performance?
  • RQ2How does a content-based, versioned index structure (POS-Tree) improve deduplication and query efficiency in versioned and forked data workloads?
  • RQ3To what extent can a unified storage engine outperform application-specific or key-value store-based implementations in blockchain and collaborative analytics workloads?
  • RQ4How does the choice of physical layout (row vs. column) affect analytical query performance in a versioned storage system?

Key findings

  • ForkBase outperforms Redis in reading historical data versions, especially when multiple versions are accessed, due to client-side caching of frequently accessed data chunks.
  • With two-layer partitioning (2LP), ForkBase achieves balanced storage distribution across nodes, overcoming the imbalance seen with single-layer partitioning (1LP) in a wiki workload.
  • ForkBase reduces storage consumption by up to 3× compared to OrpheusDB in dataset modification workloads, thanks to fine-grained chunk-level deduplication.
  • In analytical queries, column-oriented ForkBase achieves 10× better performance than row-oriented ForkBase and OrpheusDB, demonstrating the benefit of layout-aware optimization.
  • ForkBase reduces update latency by two orders of magnitude compared to OrpheusDB, due to deferred loading and minimal data commitment during checkout and commit.
  • Version comparison cost in ForkBase scales efficiently with small differences due to POS-Tree traversal, while OrpheusDB incurs consistent, high cost due to full vector comparison.

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.