Reputation: 377
HBase is known for being a key-value store and random reads with .get and .put functions based on the key. Is Cassandra a better choice for suiting a requirement of key-value store? Can it support random reads based on key? If so, in which conditions should I choose Cassandra over HBase in a Spark Streaming application?
Upvotes: 3
Views: 383
Reputation: 29165
Cassandra a better choice for suiting a requirement of key-value store?
Yes its one of the good choice.
Cassandra has decentralized architecture. Any node can perform any operation. It provides AP(Availability,Partition-Tolerance) from CAP theorem.
Eventually consistent
Can it support random reads based on key?
Yes.
If so, in which conditions should I choose Cassandra over HBase in a Spark Streaming application?
Both HBASE and CASSANDRA can be used for streaming applications. The natural choice for CASSANDRA is its high availability..
Question in title : Is Cassandra comparable to HBase?
see below for more details...
Conclusion : CASSANDRA supports AP, if you are looking for that you can go ahead with CASSANDRA
Note : As per CAP theorem, a distributed system CANT satisfy all three of these guarantees at the same time.
Upvotes: 2