Apache Cassandra is a highly scalable, high-performance distributed database designed to handle large amounts of data across many commodity servers, providing high availability with no single point of failure. It is a type of NoSQL database.
A NoSQL database (sometimes called as Not Only SQL) is a database that provides a mechanism to store and retrieve data other than the tabular relations used in relational databases. These databases are schema-free, support easy replication, have simple API, eventually consistent, and can handle huge amounts of data.
The primary objective of a NoSQL database is to have
NoSql databases use different Data Structures compared to relational databases. It makes some operations faster in NoSQL. The suitability of a given NoSQL database depends on the problem it must solve.
There are four general types of NoSQL databases, each with their own specific attributes:
1. Graph database – Based on graph theory, these databases are designed for data whose relations are well represented as a graph and has elements which are interconnected, with an undetermined number of relations between them. Examples include: Neo4j and Titan.
2. Key-Value store – we start with this type of database because these are some of the least complex NoSQL options. These databases are designed for storing data in a schema-less way. In a key-value store, all of the data within consists of an indexed key and a value, hence the name. Examples of this type of database include: Cassandra, DyanmoDB, Azure Table Storage (ATS), Riak, BerkeleyDB.
3. Column store – (also known as wide-column stores) instead of storing data in rows, these databases are designed for storing data tables as sections of columns of data, rather than as rows of data. While this simple description sounds like the inverse of a standard database, wide-column stores offer very high performance and a highly scalable architecture. Examples include: HBase, BigTable and HyperTable.
4. Document database – expands on the basic idea of key-value stores where “documents” contain more complex, in that, they contain data and each document is assigned a unique key, which is used to retrieve the document. These are designed for storing, retrieving, and managing document-oriented information, also known as semi-structured data. Examples include: MongoDB and CouchDB.
The following table lays out some of the key attributes that should be considered when evaluating NoSQL databases.
|Key-value store||High||High||High||None||Variable (None)|
|Document Store||High||Variable (High)||High||Low||Variable (Low)|
|Graph Database||Variable||Variable||High||High||Graph Theory|
Apache Cassandra(TM) is a massively scalable open source NoSQL database delivering continuous availability, linear scale performance, operational simplicity, and easy data distribution across multiple data centers and cloud availability zones. Cassandra was originally developed at Facebook and sports a design combining capabilities from Amazon’s Dynamo and Google’s Bigtable architectures; it was open sourced in 2008.
Modern applications that succeed in today’s digital, Internet economy age are those that interact intelligently with the end customer in specifically tailored and personalized ways, benefiting both the customer and the underlying business. Cassandra provides a number of key features and benefits to facilitate the development and management of these types of modern online applications:
1. Massively scalable architecture – Cassandra has a masterless design where all nodes are the same, providing operational simplicity and easy scale-out capabilities.
2. Active everywhere design – all Cassandra nodes may be written to and read from no matter where they are located.
3. Linear scale performance – online node additions produce predictable increases in performance. For example, if two nodes produce 200K transactions/sec, four nodes will deliver 400K transactions/sec, and eight nodes 800K transactions/sec.
4. Continuous availability – Cassandra offers redundancy of both data and function, which supply no single point of failure and constant uptime.
5. Transparent fault detection and recovery – nodes that fail can easily be restored or replaced.
6. Flexible and dynamic data model – supports modern data types with fast writes and reads.
7. Strong data protection – a commit log design ensures no data loss for incoming transactions. Also, built-in security with easy backup/restore keeps data protected.
8. Transaction support with tunable data consistency – Cassandra supports transactions (including batch) with strong or eventual data consistency supplied across a widely distributed cluster.
9. Multi-data center replication – Cassandra provides an outstanding cross data center (in multiple geographies) and multi-cloud availability zone support for writes/reads.
10. Data compression – data compressed up to 80% without performance overhead helps save on storage costs.
11. CQL (Cassandra Query Language) – a SQL-like language that makes moving from an RDBMS very easy.
While Cassandra is a general purpose NoSQL database used for a variety of different applications in all industries, there are a number of use cases where the database excels over most of any other option. These include:
Free Demo for Corporate & Online Trainings.