What is Cassandra?
Apache Cassandra is an open source NoSQL distributed database managed by the Apache Software Foundation under the Apache License 2.0. It runs on multiple machines while appearing to users as a unified whole. Each machine is a node, and nodes communicate with one another through a peer-to-peer gossip protocol. Cassandra has a masterless architecture, so any node can take on the coordinator role for a request.
Data is replicated to several nodes. The replication factor sets how many copies of the data exist, and Cassandra can replicate data automatically across different data centers. Failed nodes can be replaced with no downtime. By default Cassandra is an AP (Available, Partition-tolerant) database, and consistency can be configured per query, with a choice of synchronous or asynchronous replication for each update.
Cassandra is self-hosted. Capacity planning, compaction and repair need ongoing attention, and teams that do not want to run the cluster can use a managed provider such as DataStax Astra DB. Because data models follow query patterns, joins and ad hoc queries are limited compared with a relational database.
Key capabilities
- A masterless, peer-to-peer architecture with no single coordinator node
- A replication factor to set how many copies of data exist
- Automatic replication across data centers
- Consistency configured per query
- Synchronous or asynchronous replication for each update
- Failed nodes replaced with no downtime
- Free software under the Apache License 2.0
Where Cassandra fits
- Peer-to-peer architecture Every node in the cluster is identical, so any node can coordinate a request.
- Replication A replication factor sets how many copies of the data exist, and data replicates across data centers. Failed nodes can be replaced with no downtime.
- Tunable consistency Consistency is configured per query, and each update can use synchronous or asynchronous replication.
- Linear scaling Read and write throughput increase linearly as machines are added, with no downtime or interruption to applications.
- Query language and indexing Data is queried with CQL, and the documentation covers storage attached indexes (SAI) and vector search quickstarts.
- Operations Documentation covers auto repair, backups, compaction, bulk loading and change data capture.
- Audit and replay Audit logging tracks DML, DDL and DCL activity, and fqltool captures and replays production workloads for analysis.
- Tooling Cqlsh, nodetool and other tools are used to query and operate a cluster.
Reviews of Cassandra
Be the first to share your experience with Cassandra.
Write a review
Loading review form…
Found Cassandra useful? Upvote it todayYour vote helps other IT teams find it in the daily ranking.
