
Most databases have a primary node somewhere: a server that accepts writes, or coordinates the cluster, and whose failure is an incident. Apache Cassandra was designed without one. Every node is equal, data is copied to several of them, and the cluster keeps accepting reads and writes while machines, racks or even whole data centres are down. That makes it a natural fit for systems that write a lot of data, all the time, and cannot afford to stop.
This article explains what Apache Cassandra is, where it came from, how its architecture works, when it is the right choice, and how it compares with other distributed databases.
What is Apache Cassandra?
Apache Cassandra is an open-source, distributed NoSQL database. It stores data in tables of rows and columns, but it partitions those tables across many servers and replicates each partition to several of them. You query it with CQL, the Cassandra Query Language, which looks a lot like SQL but deliberately leaves out joins and cross-partition transactions.
Cassandra was designed at Facebook by Avinash Lakshman, one of the authors of Amazon's Dynamo paper, and Prashant Malik, to power the inbox search feature. Facebook released it as open source in 2008. It entered the Apache Incubator in 2009 and became a top-level project of the Apache Software Foundation in February 2010. Its design combines the distribution and replication ideas of Amazon's Dynamo with the data model of Google's Bigtable.
Cassandra is written in Java and released under the Apache License 2.0. A community of companies and individual contributors develops it; Cassandra 5.0, released in September 2024, added storage-attached indexes and vector search.
How Cassandra works
A ring of equal nodes. A Cassandra cluster has no primary. Nodes exchange state with a peer-to-peer gossip protocol, and any node can accept any request and act as the coordinator for it. Adding capacity means adding nodes; the cluster redistributes data among them.
Partitioning by hash. Each table has a partition key. Cassandra hashes it to a token, and each node owns ranges of tokens. All rows with the same partition key live together, so reading one partition is fast, and spreading load evenly depends on choosing a partition key with many distinct values.
Replication and data centres. The replication factor sets how many copies of each partition exist, and replication can be configured per data centre. A common setup keeps three copies in each region, so a node failure does not lose data and a regional outage does not stop the application.
Tunable consistency. For every read and write, the client chooses how many replicas must answer: one, a quorum, a quorum within the local data centre, or all of them. Lower levels give lower latency and higher availability; higher levels give stronger consistency. By default Cassandra favours availability.
A write-optimised storage engine. A write goes to a commit log on disk and to an in-memory table, and is acknowledged. Memory tables are flushed to immutable files called SSTables, which are merged in the background by compaction. Writes never update data in place, which is why Cassandra handles high write volumes so well. Deletes are written as markers called tombstones and removed later.
Key features
- No single point of failure: every node can serve every request, and replicas cover failed nodes.
- Linear scale-out: throughput grows by adding nodes, without downtime.
- Multi-data-centre replication: active-active across regions and clouds, with per-data-centre consistency levels.
- High write throughput: the append-only storage engine absorbs large, continuous write streams.
- CQL: a SQL-like language with tables, types, collections and user-defined types.
- Time to live (TTL) on rows and columns, which suits time-series and temporary data.
- Storage-attached indexes and vector search since 5.0, for more flexible queries and similarity search.
- Open source under the Apache License 2.0, with several managed cloud offerings.
Where Cassandra is used
- Messaging and activity feeds: large volumes of small writes that must be stored durably and read back by user or conversation.
- IoT and time-series data: sensor readings, telemetry and event logs partitioned by device and time.
- User data at global scale: profiles, preferences and history replicated across regions.
- Recommendation and personalisation systems that write and read large amounts of per-user data.
- Fraud detection and tracking: high-volume event streams that must always be accepted.
The Apache Software Foundation has listed Netflix, eBay, Instagram and Spotify among the organisations that use Cassandra.
When to choose Cassandra, and when not to
Choose Cassandra when:
- Write volume is high and continuous, and the system cannot pause for failovers or maintenance.
- The application must stay available across data centres or regions, including during outages.
- Data grows beyond what one server can hold, and you want to scale out by adding commodity nodes.
- Queries are known in advance and follow the partition key: "all events for this device today".
- You want to avoid lock-in to a single cloud vendor's database.
Look elsewhere when:
- The data is relational and the application needs joins, foreign keys and multi-row transactions. PostgreSQL is the better fit.
- Query patterns are unknown or change often. In Cassandra you design one table per query, and new questions often mean new tables.
- The dataset is small. A cluster of three or more nodes is a lot of machinery for data that fits on one server.
- The team has no one to operate it. Repairs, compaction tuning, tombstone management and capacity planning are ongoing work; a managed service or Amazon DynamoDB removes most of it.
- You need full-text search or analytics. Cassandra data is usually exported to Elasticsearch or an analytics engine for that.
Cassandra and its alternatives
| Database | Model | Where it runs | Best fit |
|---|---|---|---|
| Apache Cassandra | Wide-column, masterless | Anywhere, open source | Write-heavy, multi-region workloads |
| ScyllaDB | Wide-column, Cassandra-compatible | Anywhere, managed cloud | Cassandra workloads with fewer, larger nodes |
| Amazon DynamoDB | Key-value and document | AWS only, serverless | Key-based access with no operations |
| Azure Cosmos DB | Multi-model, includes a Cassandra API | Azure only | Globally distributed apps on Azure |
| MongoDB | Document | Anywhere, Atlas | Flexible documents with rich queries |
Amazon DynamoDB is the closest relative: both descend from the Dynamo design and both are built around partition keys. The difference is operational. DynamoDB is a serverless AWS service with nothing to run, while Cassandra runs anywhere and gives you control at the cost of operating it. Azure Cosmos DB offers a Cassandra-compatible API, which lets existing CQL applications move to a managed service on Azure. MongoDB suits applications that need flexible documents and richer queries more than extreme write throughput.
How we use Cassandra at Internative
We use Cassandra for data-intensive systems that need high availability and horizontal scalability. Its distributed architecture suits mission-critical applications whose workloads span regions.
If you are planning a system that has to keep writing through failures, or moving an existing data layer to a distributed architecture, our cloud architecture and migration team can help you decide whether Cassandra is the right foundation.
Frequently asked questions
Is Apache Cassandra a NoSQL database?
Yes. Cassandra is a distributed NoSQL database, usually described as a wide-column store. It uses tables, rows and columns and a SQL-like query language, CQL, but it has no joins, no foreign keys and no transactions across partitions.
What is Cassandra used for?
Cassandra is used for workloads with heavy, continuous writes that must stay available: messaging, activity feeds, IoT and time-series data, user data replicated across regions, and event tracking. It is most useful when the dataset is too large for one server and queries follow a known key.
Is Cassandra faster than PostgreSQL?
For high-volume writes spread across many servers, Cassandra usually scales further, because writes are appended and every node accepts them. For complex queries, joins and transactions, PostgreSQL is faster and simpler. They are built for different workloads, so the right comparison is the access pattern, not raw speed.
What are the disadvantages of Cassandra?
Data must be modelled around queries, so new query patterns often need new tables. There are no joins or cross-partition transactions. Operating a cluster takes work: repairs, compaction, tombstones and capacity planning. Eventual consistency also needs care when the application reads its own recent writes.
Is Apache Cassandra still relevant?
Yes. It remains an actively developed Apache project, and version 5.0 added storage-attached indexes and vector search. It is still a common choice for large, write-heavy, multi-region systems, and several cloud providers offer Cassandra-compatible managed services.
Keep reading
The articles that follow this one.



