Skip to content

Notes on science, software and the craft of support

Martin EvansNotes and resources

Databases

Apache Cassandra for large data

Cassandra is a distributed open source NoSQL database built for high availability and fault tolerance across many commodity servers.

Cassandra is a distributed, open source NoSQL database management system designed to handle large volumes of data across multiple commodity servers, providing high availability with no single point of failure. It is a highly scalable and fault tolerant system, which makes it a strong choice for large scale applications such as search engines, messaging systems and data warehouses.

Cassandra was created by Facebook in 2008 and later released as an open source project in 2009. It is written in Java and is based on log structured merge trees, an algorithm used for writing data to disk.

Availability and replication

The algorithm allows fast writes and reads as well as scalability and fault tolerance. Cassandra is designed to be fault tolerant, which means it can continue to operate even when some of its nodes fail. It achieves this by replicating data across multiple nodes and using a quorum based consensus protocol to keep data consistent across nodes.

That design also supports high availability, because the system can continue to operate even when some nodes are unavailable. Cassandra is a good choice for applications that require scalability and high availability. It is also commonly used for real time analytics because it can handle large amounts of data quickly and efficiently.

Cassandra is relatively easy to set up and use. It is supported by a wide range of programming languages, such as Java, Python and Node.js, and it has a broad set of tools for managing and monitoring the system. In summary, Cassandra is a powerful open source NoSQL database designed for scalability, high availability and real time analytics.