Graph
Apache Cassandra

đŸ§±Apache Cassandra

NEW

Also known as: Cassandra

A distributed, wide-column NoSQL database built for high availability, linear scalability, and fault tolerance across commodity servers.

DESCRIPTION

Apache Cassandra stores data in partitioned, sorted wide-column tables and offers tunable consistency with eventual consistency by default. Its architecture, inspired by Dynamo and Bigtable, provides high availability without single points of failure. Cassandra excels at write-heavy, globally distributed workloads with predictable performance. Data modeling focuses on query-driven, denormalized tables. Operationally, it requires careful attention to compaction, repair, and partition key design.

ALTERNATIVE DEFINITIONS

Apache Cassandra

The Apache Cassandra database is a distributed NoSQL database designed to handle large amounts of data across many commodity servers, providing high availability with no single point of failure.

Highlights distribution, high availability, and fault tolerance.

Source

DataStax

Apache Cassandra is a highly scalable, distributed NoSQL database optimized for high write throughput, low latency, and always-on availability.

Emphasizes performance and always-on characteristics.

Source

NoSQL Database Column-Family Store CQL Data Replication Consistency Levels Google Bigtable Amazon DynamoDB CAP Theorem

COMPETING TERMS

Apache HBase ScyllaDB

RELATIONS

KNOWLEDGE AREAS

Data Storage & Operations Data Engineering Cloud Real-time & Streaming Data

TARGET AUDIENCE

Data Engineer Software Developer Data Architect Cloud Architect

EXTERNAL SOURCES

TOP QUESTIONS

What workloads fit Apache Cassandra best?

High write throughput, time-series, session stores, and globally distributed apps with linear scalability and always-on requirements are ideal.

Category: Decision

How does Cassandra achieve high availability?

It replicates data across nodes and racks, avoiding single points of failure. Tunable consistency lets clients balance availability and consistency.

Category: Mechanism

What is the role of partition keys in Cassandra?

Partition keys determine data distribution and query locality. Good keys avoid hotspots and ensure balanced partitions.

Category: Best Practices

How does Cassandra differ from HBase?

Cassandra is masterless with tunable consistency; HBase relies on HDFS and region servers. Operational models and ecosystems differ.

Category: Comparison

What are common operational tasks in Cassandra?

Compaction tuning, incremental repair, backup/restore, and monitoring read/write latencies are key tasks.

Category: Operations

Does Cassandra support ACID transactions?

It supports lightweight transactions (LWT) for conditional updates, but not full multi-row ACID like relational systems.

Category: Capabilities

How does Cassandra handle schema changes?

Schema is flexible but must be coordinated cluster-wide; rolling updates and testing prevent downtime.

Category: Management

What is CQL and why use it?

Cassandra Query Language (CQL) offers SQL-like syntax optimized for Cassandra’s data model, simplifying development.

Category: Tooling

What are typical pitfalls with Cassandra?

Poor partition key design, unbounded partitions, and read-before-write patterns can harm performance and reliability.

Category: Mistakes