How does Cassandra ensure data durability and fault tolerance through replication?
Last updated
Per node, every write is appended to the on-disk
commitlogand the in-memorymemtable. The commit log is replayed after a crash to recover unflushed writes.Across the cluster, each write goes to all RF replicas, and the write consistency level (e.g.
QUORUM) sets how many must acknowledge.Hinted handoff, read repair and
nodetool repairkeep replicas consistent after failures.
- https://cassandra.apache.org/doc/4.0/cassandra/architecture/storage_engine.html
- https://cassandra.apache.org/doc/stable/cassandra/architecture/storage-engine.html
- https://cassandra.apache.org/doc/stable/cassandra/architecture/dynamo.html
- https://cassandra.apache.org/doc/4.0/cassandra/architecture/guarantees.html
- https://docs.datastax.com/en/dse/6.9/architecture/database-architecture/architecture-introduction.html
- https://dev.to/farhadrahimiklie/apache-cassandra-database-the-complete-guide-architecture-internals-and-full-cql-syntax-23f7
- https://medium.com/@ashutoshkumar2048/apache-cassandra-the-ultimate-nosql-database-part-1-dadf797d3e98
- https://medium.com/@priyaskulkarni/understanding-apache-cassandra-fundamentals-architecture-with-real-time-examples-8ee775f33053