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

Aerospike

198
285
+ 1
48
Cassandra

3.5K
3.5K
+ 1
507
Add tool

Aerospike vs Cassandra: What are the differences?

Introduction

Aerospike and Cassandra are both popular distributed database management systems, but they have key differences that set them apart. In this article, we will outline six key differences between Aerospike and Cassandra.

  1. Data Model: Aerospike follows a key-value data model, where each record is identified by a unique key and can store a value with multiple bins containing various data types. On the other hand, Cassandra uses a wide column data model, where data is organized into rows, each of which contains multiple columns grouped together in a column family.

  2. Consistency Model: Aerospike offers strong consistency by default, ensuring that all replicas of a record are up-to-date before acknowledging a write operation. Cassandra, on the other hand, provides eventual consistency, where updates are propagated asynchronously to replicas, allowing for higher availability and partition tolerance at the cost of potential data inconsistency.

  3. Partitioning Strategy: Aerospike employs a shared-nothing architecture with automatic data partitioning across nodes, allowing for linear scalability and performance. Cassandra also utilizes a shared-nothing architecture but provides configurable partitioning strategies, including random, byte order, and key-based partitioners, enabling more flexibility in data distribution.

  4. Secondary Indexing: Aerospike supports both primary and secondary indexing, allowing queries to efficiently retrieve records based on secondary attributes. Cassandra, on the other hand, does not natively support secondary indexes, requiring the use of external tools like Apache Lucene or Elasticsearch for efficient querying on non-primary keys.

  5. Data Distribution: Aerospike ensures the replication factor and distribution of data across nodes based on a configurable policy, providing fault tolerance and high availability. In contrast, Cassandra utilizes consistent hashing to determine the placement of data replicas in a ring-like architecture, allowing for balanced data distribution among nodes.

  6. Write Performance: Aerospike is optimized for high write throughput, providing sub-millisecond latency and predictable performance for write-intensive workloads. Cassandra, on the other hand, excels in high read and write throughput scenarios, especially in multi-data center environments, where its asynchronous replication and tunable consistency levels provide excellent scalability.

In Summary, Aerospike and Cassandra differ in their data models, consistency models, partitioning strategies, secondary indexing capabilities, data distribution mechanisms, and write performance characteristics. Each database has its strengths and use cases, depending on the specific requirements of the application.

Advice on Aerospike and Cassandra
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
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
Pankaj Soni
Chief Technical Officer at Software Joint · | 2 upvotes · 147.5K 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
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Aerospike
Pros of Cassandra
  • 16
    Ram and/or ssd persistence
  • 12
    Easy clustering support
  • 5
    Easy setup
  • 4
    Acid
  • 3
    Petabyte Scale
  • 3
    Scale
  • 3
    Performance better than Redis
  • 2
    Ease of use
  • 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

Sign up to add or upvote prosMake informed product decisions

Cons of Aerospike
Cons of Cassandra
    Be the first to leave a con
    • 3
      Reliability of replication
    • 1
      Size
    • 1
      Updates

    Sign up to add or upvote consMake informed product decisions

    What is Aerospike?

    Aerospike is an open-source, modern database built from the ground up to push the limits of flash storage, processors and networks. It was designed to operate with predictable low latency at high throughput with uncompromising reliability – both high availability and ACID guarantees.

    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.

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

    What companies use Aerospike?
    What companies use Cassandra?
    See which teams inside your own company are using Aerospike or Cassandra.
    Sign up for StackShare EnterpriseLearn More

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

    What tools integrate with Aerospike?
    What tools integrate with Cassandra?

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

    Blog Posts

    What are some alternatives to Aerospike and Cassandra?
    Redis
    Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache, and message broker. Redis provides data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes, and streams.
    Riak
    Riak is a distributed database designed to deliver maximum data availability by distributing data across multiple servers. As long as your client can reach one Riak server, it should be able to write data. In most failure scenarios, the data you want to read should be available, although it may not be the most up-to-date version of that data.
    Elasticsearch
    Elasticsearch is a distributed, RESTful search and analytics engine capable of storing data and searching it in near real time. Elasticsearch, Kibana, Beats and Logstash are the Elastic Stack (sometimes called the ELK Stack).
    Tarantool
    It is designed to give you the flexibility, scalability, and performance that you want, as well as the reliability and manageability that you need in mission-critical applications
    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.
    See all alternatives