Need advice about which tool to choose?Ask the StackShare community!
Aerospike vs Scylla: What are the differences?
Aerospike vs. Scylla: Key Differences
Introduction
Aerospike and Scylla are both highly scalable NoSQL databases used for big data applications. While both offer high performance and low-latency data storage, they have key differences that distinguish them from each other.
Data Model: Aerospike uses a key-value data model, where each record is identified by a unique key and contains a set of bins (name-value pairs). On the other hand, Scylla is based on the Apache Cassandra data model, using a wide-column data model where data is organized into rows, columns, and column families. This allows Scylla to handle complex and dynamic data with a flexible schema.
Consistency Model: Aerospike provides strong consistency by default, ensuring that all replicas in a cluster are updated before acknowledging a write operation. In contrast, Scylla, like Cassandra, adopts a tunable consistency model that allows users to choose the level of consistency required for each operation. This allows for better trade-offs between latency and consistency based on specific application needs.
Distribution Strategy: Aerospike distributes data using a data replication strategy called "replication factor," where each record is replicated on multiple nodes. This ensures high availability and fault tolerance. On the other hand, Scylla uses a consistent hashing algorithm to distribute data across a cluster using virtual nodes. This allows for better load balancing and automatic data redistribution when nodes are added or removed from the cluster.
Query Language: Aerospike uses a SQL-like query language called Aerospike Query Language (AQL) to perform queries and aggregations on data. It offers a powerful set of functionalities for data manipulation. In contrast, Scylla uses Cassandra Query Language (CQL), which is based on SQL but also offers additional features specific to Cassandra's data model, such as wide-column support and secondary indexes.
Write Path Optimization: Aerospike optimizes the write path by storing data in memory and persisting it to disk asynchronously. This allows for extremely fast write operations and high throughput. Scylla, on the other hand, utilizes a log-structured merge (LSM) tree data structure to optimize write operations. It writes data sequentially to disk, minimizing disk I/O and enabling efficient compaction and recovery processes.
Community Support and Adoption: Aerospike has a dedicated and active community, with a strong focus on high-performance and low-latency use cases. Scylla, on the other hand, has gained significant traction among the developer community due to its compatibility with Apache Cassandra and its ability to handle large-scale workloads with low latencies.
In summary, Aerospike and Scylla differ in terms of their data models, consistency models, distribution strategies, query languages, write path optimization, and community support. These differences highlight the unique strengths and use cases of each database, allowing developers to choose the one that best suits their specific requirements.
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.
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
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.
i love syclla for pet projects however it's license which is based on server model is an issue. thus i recommend cassandra
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.
The Gentlent Tech Team made lots of updates within the past year. The biggest one being our database:
We decided to migrate our #PostgreSQL -based database systems to a custom implementation of #Cassandra . This allows us to integrate our product data perfectly in a system that just makes sense. High availability and scalability are supported out of the box.
Pros of Aerospike
- Ram and/or ssd persistence16
- Easy clustering support12
- Easy setup5
- Acid4
- Petabyte Scale3
- Scale3
- Performance better than Redis3
- Ease of use2
Pros of ScyllaDB
- Replication2
- Fewer nodes1
- Distributed1
- Scale up1
- High availability1
- Written in C++1
- High performance1