Cassandra Tutorial for Beginners: Learn in 3 Days

What is Apache Cassandra?

Cassandra is a distributed database management system designed for handling a high volume of structured data across commodity servers

Cassandra handles the huge amount of data with its distributed architecture. Data is placed on different machines with more than one replication factor that provides high availability and no single point of failure.

In the image below, circles are Cassandra nodes and lines between the circles shows distributed architecture, while the client is sending data to the node.

Cassandra Database Tutorial for Beginners: Learn in 3 Days

Here is what we cover in this training guide

Tutorial How to Download & Install Cassandra on Windows
Tutorial Cassandra Architecture & Replication Factor Strategy
Tutorial Cassandra Data Model with Simple Example
Tutorial Create, Alter & Drop Keyspace in Cassandra with Example
Tutorial Cassandra Table: Create, Alter, Drop & Truncate (with Example)
Tutorial Cassandra Query Language(CQL): Insert Into, Update, Delete (Example)
Tutorial Create & Drop INDEX in Cassandra
Tutorial Cassandra CQL Data Types & Data Expiration using TTL (Example)
Tutorial Cassandra Collection: Set, List, Map with Example
Tutorial Cassandra Cluster Setup on Multiple Nodes (Machines)
Tutorial DataStax DevCenter & OpsCenter Installation Guide
Tutorial Cassandra Security: Create User & Authentication with JMX
Tutorial Top 23 Cassandra Interview Questions & Answers
Tutorial Cassandra PDF

Cassandra History

First let's understand what NoSQL database is.

Nosql Cassandra Database

NoSQL databases are called "Not Only SQL" or "Non-relational" databases. NoSQL databases store and retrieve data other than tabular relations such as relation databases.

NoSQL databases include MongoDB, HBase, and Cassandra.

There are following properties of NoSQL databases.

Data structures used in Cassandra are more specified than data structures used in relational databases. Cassandra data structures are faster than relational database structures.

NoSQL databases are increasingly used in Big Data and real-time web applications. NoSQL databases are sometimes called Not Only SQL i.e. they may support SQL-like query language.

Nosql Cassandra Database Vs Relational databases

Here are the differences between relation databases and NoSQL databases in a tabular format.

Relational Database NoSQL Database
Handles data coming in low velocity Handles data coming in high velocity
Data arrive from one or few locations Data arrive from many locations
Manages structured data Manages structured unstructured and semi-structured data.
Supports complex transactions (with joins) Supports simple transactions
single point of failure with failover No single point of failure
Handles data in the moderate volume. Handles data in very high volume
Centralized deployments Decentralized deployments
Transactions written in one location Transaction written in many locations
Gives read scalability Gives both read and write scalability
Deployed in vertical fashion Deployed in Horizontal fashion

Apache Cassandra Features

There are following features that Cassandra provides.

Cassandra Use Cases/Application

Cassandra is a non-relational database that can be used for different types of applications. Here are some use cases where Cassandra should be preferred.

 

YOU MIGHT LIKE: