O'Reilly logo

Learning Apache Cassandra - Second Edition by Sandeep Yarabarla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The write path

When Cassandra initially came out, it was widely considered a write-optimized database. Whenever a client makes a write request, a coordinator node receives it. The coordinator node forwards the request to the relevant nodes based on the partition key and replication factor. The reason local writes are fast in Cassandra is because all the writes are appended to an append-only commitlog and to an in-memory structure called memtable. This doesn't require any disk seeks unlike local reads. We will take a more in-depth look at the write path in this section as well as the different operations involved to get rid of unnecessary data and keep data consistent across nodes.

The write path consists of four steps:

  1. Append data to the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required