Write paths

Cassandra is masterless—there are no primary and secondary nodes/replicas. A client can connect with any node in the Cassandra cluster. Once connected, the node acts as the coordinator and drives the required interactions with the rest of the cluster on behalf of the client.

On a single node, Cassandra uses log-structured merge trees to store data. The life cycle of a write is as simple as updating an in-memory table of row/column values and writing to a commit log (so that durability is retained):

Periodically, the in-memory table (called memtable) is flushed to disk and the data is converted into SSTable format—where the keys ...

Get Hands-On Software Architecture with Golang now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.