StackShareStackShare
Follow on
StackShare

Discover and share technology stacks from companies around the world.

Follow on

© 2025 StackShare. All rights reserved.

Product

  • Stacks
  • Tools
  • Feed

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  1. Stackups
  2. Application & Data
  3. Databases
  4. Databases
  5. HBase vs RocksDB

HBase vs RocksDB

OverviewDecisionsComparisonAlternatives

Overview

HBase
HBase
Stacks511
Followers498
Votes15
GitHub Stars5.5K
Forks3.4K
RocksDB
RocksDB
Stacks141
Followers290
Votes11
GitHub Stars30.9K
Forks6.6K

HBase vs RocksDB: What are the differences?

Introduction

HBase and RocksDB are both popular distributed database systems, but they have several key differences that differentiate them from each other. In this document, we will explore the specific differences between HBase and RocksDB.

  1. Data Model: HBase is a column-oriented database that organizes data in tables and uses a row-key based data model. Each row consists of multiple columns, and columns can be grouped into column families. RocksDB, on the other hand, is a key-value store that stores data in a sorted key-value format. It does not have a concept of tables or rows like HBase.

  2. Storage Layer: HBase is built on top of the Hadoop Distributed File System (HDFS) and stores its data in a distributed manner across multiple nodes. It provides fault-tolerance and high availability by replicating data to multiple nodes. RocksDB, on the other hand, is a local storage engine that stores its data on local disks or SSDs. It does not provide built-in fault-tolerance or replication capabilities like HBase.

  3. Scalability: HBase is designed to scale horizontally by adding more nodes to the cluster. It automatically partitions and distributes data across the cluster, allowing for high scalability. RocksDB, on the other hand, is designed to be a single-node database and does not natively support horizontal scalability. To achieve scalability with RocksDB, users need to shard their data across multiple instances manually.

  4. Consistency Model: HBase provides strong consistency guarantees and supports ACID transactions. It ensures that updates to data are atomic and isolated. RocksDB, on the other hand, is an eventually consistent database that prioritizes high write performance. It does not provide strong consistency guarantees, and updates to data may take some time to propagate across different replicas.

  5. Data Access Patterns: HBase is optimized for random reads and writes and is well-suited for applications that require low latency access to individual records. It provides efficient row-level access and supports complex querying using filters and scans. RocksDB, on the other hand, is optimized for sequential reads and writes and is well-suited for applications that process large amounts of data in batches. It provides efficient range queries and supports iterators for iterating over keys in sorted order.

  6. Data Durability: HBase provides durability guarantees by persisting data to disk and replicating it across multiple nodes. It also provides mechanisms for data backup and disaster recovery. RocksDB, on the other hand, relies on the underlying storage media for data durability. It does not provide built-in mechanisms for data replication or backup.

In summary, HBase and RocksDB differ in their data models, storage layers, scalability, consistency models, data access patterns, and data durability.

Share your Stack

Help developers discover the tools you use. Get visibility for your team's tech choices and contribute to the community's knowledge.

View Docs
CLI (Node.js)
or
Manual

Advice on HBase, RocksDB

D
D

Feb 9, 2022

Needs adviceonMilvusMilvusHBaseHBaseRocksDBRocksDB

I am researching different querying solutions to handle ~1 trillion records of data (in the realm of a petabyte). The data is mostly textual. I have identified a few options: Milvus, HBase, RocksDB, and Elasticsearch. I was wondering if there is a good way to compare the performance of these options (or if anyone has already done something like this). I want to be able to compare the speed of ingesting and querying textual data from these tools. Does anyone have information on this or know where I can find some? Thanks in advance!

174k views174k
Comments

Detailed Comparison

HBase
HBase
RocksDB
RocksDB

Apache HBase is an open-source, distributed, versioned, column-oriented store modeled after Google' Bigtable: A Distributed Storage System for Structured Data by Chang et al. Just as Bigtable leverages the distributed data storage provided by the Google File System, HBase provides Bigtable-like capabilities on top of Apache Hadoop.

RocksDB is an embeddable persistent key-value store for fast storage. RocksDB can also be the foundation for a client-server database but our current focus is on embedded workloads. RocksDB builds on LevelDB to be scalable to run on servers with many CPU cores, to efficiently use fast storage, to support IO-bound, in-memory and write-once workloads, and to be flexible to allow for innovation.

-
Designed for application servers wanting to store up to a few terabytes of data on locally attached Flash drives or in RAM;Optimized for storing small to medium size key-values on fast storage -- flash devices or in-memory;Scales linearly with number of CPUs so that it works well on ARM processors
Statistics
GitHub Stars
5.5K
GitHub Stars
30.9K
GitHub Forks
3.4K
GitHub Forks
6.6K
Stacks
511
Stacks
141
Followers
498
Followers
290
Votes
15
Votes
11
Pros & Cons
Pros
  • 9
    Performance
  • 5
    OLTP
  • 1
    Fast Point Queries
Pros
  • 5
    Very fast
  • 3
    Made by Facebook
  • 2
    Consistent performance
  • 1
    Ability to add logic to the database layer where needed

What are some alternatives to HBase, RocksDB?

MongoDB

MongoDB

MongoDB stores data in JSON-like documents that can vary in structure, offering a dynamic, flexible schema. MongoDB was also designed for high availability and scalability, with built-in replication and auto-sharding.

MySQL

MySQL

The MySQL software delivers a very fast, multi-threaded, multi-user, and robust SQL (Structured Query Language) database server. MySQL Server is intended for mission-critical, heavy-load production systems as well as for embedding into mass-deployed software.

PostgreSQL

PostgreSQL

PostgreSQL is an advanced object-relational database management system that supports an extended subset of the SQL standard, including transactions, foreign keys, subqueries, triggers, user-defined types and functions.

Microsoft SQL Server

Microsoft SQL Server

Microsoft® SQL Server is a database management and analysis system for e-commerce, line-of-business, and data warehousing solutions.

SQLite

SQLite

SQLite is an embedded SQL database engine. Unlike most other SQL databases, SQLite does not have a separate server process. SQLite reads and writes directly to ordinary disk files. A complete SQL database with multiple tables, indices, triggers, and views, is contained in a single disk file.

Cassandra

Cassandra

Partitioning means that Cassandra can distribute your data across multiple machines in an application-transparent matter. Cassandra will automatically repartition as machines are added and removed from the cluster. Row store means that like relational databases, Cassandra organizes data by rows and columns. The Cassandra Query Language (CQL) is a close relative of SQL.

Memcached

Memcached

Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.

MariaDB

MariaDB

Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry. MariaDB is designed as a drop-in replacement of MySQL(R) with more features, new storage engines, fewer bugs, and better performance.

RethinkDB

RethinkDB

RethinkDB is built to store JSON documents, and scale to multiple machines with very little effort. It has a pleasant query language that supports really useful queries like table joins and group by, and is easy to setup and learn.

ArangoDB

ArangoDB

A distributed free and open-source database with a flexible data model for documents, graphs, and key-values. Build high performance applications using a convenient SQL-like query language or JavaScript extensions.

Related Comparisons

Bootstrap
Materialize

Bootstrap vs Materialize

Laravel
Django

Django vs Laravel vs Node.js

Bootstrap
Foundation

Bootstrap vs Foundation vs Material UI

Node.js
Spring Boot

Node.js vs Spring-Boot

Liquibase
Flyway

Flyway vs Liquibase