Need advice about which tool to choose?Ask the StackShare community!

Amazon DynamoDB

3.7K
3.2K
+ 1
195
Cassandra

3.6K
3.5K
+ 1
507
HBase

463
496
+ 1
15

Amazon DynamoDB vs Cassandra vs HBase: What are the differences?

Introduction

In this article, we will compare the key differences between Amazon DynamoDB, Cassandra, and HBase, three popular NoSQL databases. Each of these databases has its own strengths and use cases, and understanding their differences can help in making the right choice for specific requirements.

  1. Data Model:

Amazon DynamoDB is a document-oriented database wherein each item can have its own unique set of attributes. It provides flexibility in schema design and allows for easy scaling.

Cassandra follows a column-oriented data model, with each row organized into a collection of columns. It offers flexible schema design and high write throughput, making it suitable for write-intensive applications.

HBase is a columnar database that also follows the column-oriented data model. It is designed to handle large amounts of structured and semi-structured data efficiently, providing low latency reads.

  1. Scalability:

DynamoDB provides automatic scaling both in terms of read and write operations. It adjusts the capacity to handle the varying load automatically, making it highly scalable.

Cassandra also offers seamless scalability by distributing data across several nodes. It utilizes a master-less architecture, allowing for linear scalability as the number of nodes increases.

HBase is horizontally scalable and can handle large amounts of data. It can be scaled by adding more nodes to the cluster, ensuring high availability and fault tolerance.

  1. Consistency Model:

DynamoDB offers eventual consistency by default but allows developers to choose strong consistency when required for specific read operations.

Cassandra provides tunable consistency, allowing developers to choose the level of consistency they need for each read and write operation. It offers eventual consistency and strong consistency options.

HBase supports strong consistency with immediate visibility for both reads and writes. It ensures data consistency by default, making it suitable for applications that require strong consistency guarantees.

  1. Data Replication:

DynamoDB automatically replicates data across multiple availability zones for high availability and durability. It is designed for multi-region replication and provides automatic failover.

Cassandra allows for data replication across multiple nodes, enabling fault tolerance and availability. It supports various replication strategies, including datacenter-aware and rack-aware replication.

HBase replicates data across multiple region servers to ensure high availability and fault tolerance. It provides synchronous replication with strong consistency guarantees.

  1. Query Language:

DynamoDB uses a proprietary query language called Amazon DynamoDB Query Language (DQL). It provides a flexible and expressive syntax for querying data, including support for filtering, sorting, and pagination.

Cassandra uses Cassandra Query Language (CQL), which is similar to SQL, to interact with the database. CQL allows developers to perform complex queries and supports features like filtering, ordering, and aggregations.

HBase does not have a specific query language and primarily relies on scanning the entire dataset or using index tables for retrieving data.

  1. Use Cases:

DynamoDB is well-suited for use cases that require low-latency access, high scalability, and flexible schema design, such as real-time applications, gaming, and mobile apps.

Cassandra is suitable for write-intensive applications that require high availability, fault tolerance, and fast writes, such as messaging platforms, IoT data ingestion, and time-series data.

HBase is often used in applications that require random, real-time read/write access to large amounts of structured and semi-structured data, such as social media analytics, fraud detection, and log processing.

In Summary, Amazon DynamoDB, Cassandra, and HBase differ in their data models, scalability options, consistency models, data replication strategies, query languages, and use cases. Understanding these differences is crucial in choosing the right NoSQL database for specific requirements.

Advice on Amazon DynamoDB, Cassandra, and HBase
Vinay Mehta
Needs advice
on
CassandraCassandra
and
ScyllaDBScyllaDB

The problem I have is - we need to process & change(update/insert) 55M Data every 2 min and this updated data to be available for Rest API for Filtering / Selection. Response time for Rest API should be less than 1 sec.

The most important factors for me are processing and storing time of 2 min. There need to be 2 views of Data One is for Selection & 2. Changed data.

See more
Replies (4)
Recommends
on
ScyllaDBScyllaDB

Scylla can handle 1M/s events with a simple data model quite easily. The api to query is CQL, we have REST api but that's for control/monitoring

See more
Alex Peake
Recommends
on
CassandraCassandra

Cassandra is quite capable of the task, in a highly available way, given appropriate scaling of the system. Remember that updates are only inserts, and that efficient retrieval is only by key (which can be a complex key). Talking of keys, make sure that the keys are well distributed.

See more
Pankaj Soni
Chief Technical Officer at Software Joint · | 2 upvotes · 163.2K views
Recommends
on
CassandraCassandra

i love syclla for pet projects however it's license which is based on server model is an issue. thus i recommend cassandra

See more
Recommends
on
ScyllaDBScyllaDB

By 55M do you mean 55 million entity changes per 2 minutes? It is relatively high, means almost 460k per second. If I had to choose between Scylla or Cassandra, I would opt for Scylla as it is promising better performance for simple operations. However, maybe it would be worth to consider yet another alternative technology. Take into consideration required consistency, reliability and high availability and you may realize that there are more suitable once. Rest API should not be the main driver, because you can always develop the API yourself, if not supported by given technology.

See more
Decisions about Amazon DynamoDB, Cassandra, and HBase
emile salem

6 months ago we finished migrating the Workjam channels module datastore. Reasons for the switch was frustrations with AWS read/write capacities being frequently exceeded because of unplanned explosive growth, hard limitations on batch updates and interesting Cassandra features such as consistency tuning and Datastax's Solr integration. The decision to use Cassandra might not have been the most practical one as our needs would probably have been better served by a document store such as MongoDB, as we are not dealing with intense document update operations, but Cassandra was used throughout the company and the aim of stack uniformity was favoured over functional needs. We implemented the migration with the aim of incurring no downtime and the ability to rollback by sending write commands over AMQP. Overall the migration went smoothly, the devs learned all the powers of Cassandra and got acquainted with its many constraints. Datastax's Solr integration made the search implementation very simple but we were very disappointed in some of Datastax's Solr integration limitations (ex: search highlights being deprecated).

See more
Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of Amazon DynamoDB
Pros of Cassandra
Pros of HBase
  • 62
    Predictable performance and cost
  • 56
    Scalable
  • 35
    Native JSON Support
  • 21
    AWS Free Tier
  • 7
    Fast
  • 3
    No sql
  • 3
    To store data
  • 2
    Serverless
  • 2
    No Stored procedures is GOOD
  • 1
    ORM with DynamoDBMapper
  • 1
    Elastic Scalability using on-demand mode
  • 1
    Elastic Scalability using autoscaling
  • 1
    DynamoDB Stream
  • 119
    Distributed
  • 98
    High performance
  • 81
    High availability
  • 74
    Easy scalability
  • 53
    Replication
  • 26
    Reliable
  • 26
    Multi datacenter deployments
  • 10
    Schema optional
  • 9
    OLTP
  • 8
    Open source
  • 2
    Workload separation (via MDC)
  • 1
    Fast
  • 9
    Performance
  • 5
    OLTP
  • 1
    Fast Point Queries

Sign up to add or upvote prosMake informed product decisions

Cons of Amazon DynamoDB
Cons of Cassandra
Cons of HBase
  • 4
    Only sequential access for paginate data
  • 1
    Scaling
  • 1
    Document Limit Size
  • 3
    Reliability of replication
  • 1
    Size
  • 1
    Updates
    Be the first to leave a con

    Sign up to add or upvote consMake informed product decisions

    - No public GitHub repository available -

    What is Amazon DynamoDB?

    With it , you can offload the administrative burden of operating and scaling a highly available distributed database cluster, while paying a low price for only what you use.

    What is 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.

    What is HBase?

    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.

    Need advice about which tool to choose?Ask the StackShare community!

    What companies use Amazon DynamoDB?
    What companies use Cassandra?
    What companies use HBase?

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with Amazon DynamoDB?
    What tools integrate with Cassandra?
    What tools integrate with HBase?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    Blog Posts

    Jun 24 2020 at 4:42PM

    Pinterest

    Amazon S3KafkaHBase+4
    5
    1260
    MySQLKafkaApache Spark+6
    4
    2071
    GitHubPythonReact+42
    49
    40963
    GitHubPythonNode.js+47
    55
    72860
    GitGitHubSlack+30
    27
    18726
    What are some alternatives to Amazon DynamoDB, Cassandra, and HBase?
    Google Cloud Datastore
    Use a managed, NoSQL, schemaless database for storing non-relational data. Cloud Datastore automatically scales as you need it and supports transactions as well as robust, SQL-like queries.
    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.
    Amazon SimpleDB
    Developers simply store and query data items via web services requests and Amazon SimpleDB does the rest. Behind the scenes, Amazon SimpleDB creates and manages multiple geographically distributed replicas of your data automatically to enable high availability and data durability. Amazon SimpleDB provides a simple web services interface to create and store multiple data sets, query your data easily, and return the results. Your data is automatically indexed, making it easy to quickly find the information that you need. There is no need to pre-define a schema or change a schema if new data is added later. And scale-out is as simple as creating new domains, rather than building out new servers.
    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.
    Amazon S3
    Amazon Simple Storage Service provides a fully redundant data storage infrastructure for storing and retrieving any amount of data, at any time, from anywhere on the web
    See all alternatives