Cassandra is a free open-sourced distributed database management system used to manage big data set across multiple nodes. In Cassandra, every node is interconnected with each other and accept both read and write operations. It has no single point of failure because if a node goes down another node will serve instead of that node.
In Cassandra, these nodes are used for replications for a given piece of data.
Components of Cassandra:
The main components of Cassandra are as follows:
Cassandra Query Language (CQL):
CQL is SQL like query language is used to run queries on the Cassandra database. CQL is used to create, update, delete Kyspace, tables, rows.
Write Operations:
When a write operations come to the Cassandra database the data goes to it's specified node according to the partition key by using the ring (Consistent hashing algorithms). In node, data is captured by commit log as well as this data is captured and stored in mem-table. Whenever the mem-table will be full then data will be flushed into SSTable.
Read Operations:
For a read operation, Cassandra returns the value-form mem-table and use the bloom filter to find out which SSTable contains the required data.