Cassandra Data Base1
Cassandra Data Base1
BASE
SUBMITTED BY,
HITHASHREE N R
HITHASHREE H P
HARSHAVARDHAN A C
INTRODUCTION:
• Developed by: Facebook; Released by Apache
• Named after: Trojan prophet Cassandra
• Written in: Java
• Design Based On: Amazon's Dynamo
Key Characteristics:
• Open-source & NoSQL
• Highly Scalable & Distributed
• Column-Oriented, Fault Tolerant
• Decentralized with Tunable Consistency
• Schema-free (semi-structured, unstructured support)
FEATURES AND DATA REPLICATION
Core Features:
1. High write throughput (low-cost writes).
2. Data duplication for reliability.
3. No support for Joins, Group By, Aggregations.
4. Uses ordered keys and semi-structured data.
5. Fast, scalable, and decentralized – no master node.
6. Handles large volumes of structured/unstructured data.
Data Replication:
• Stores data across multiple nodes.
• No single point of failure.
• Ensures high availability (CAP Theorem).
• Uses replication strategy & factor.
• Supports read repair for stale data.
Apache Cassandra – Components &
Strategies
Components of Cassandra:
• Node: Stores and processes data.
• Data Center: Group of related nodes.
• Cluster: Collection of data centers.
• Commit Log: For crash recovery; logs every write.
• Mem-table: In-memory store; temporary write space.
• SSTable: Data flushed from mem-table to disk when threshold is reached.
• Bloom Filter: Efficiently checks data existence after each query.
Scalability:
• Linear scalability increases throughput and reduces response time as nodes
increase.
Transaction Support:
• Supports ACID properties (Atomicity, Consistency, Isolation, Durability).
Replication Strategies:
• Simple Strategy: Sets a replication factor for the cluster.
• Network Topology Strategy: Sets different replication factors per data
Cassandra – Data Types & Data
Model
CQL Data Types:
•Basic Types: ascii, bigint, blob, boolean, counter, int, float, double,
timestamp
•Textual Types: text, varchar
•Complex Types: list, map, set
•Network Type: inet
•Others: varint (arbitrary precision integer)