Apache Cassandra

Apache Cassandra

Data modeling, consistency, compaction, repair, vector search 5, multi-DC.

84Articles
84Topics covered
Articles in this category

All 26 articles, sorted alphabetically

Advertisement
ARTICLE · 01

Understanding the CAP Theorem and Cassandra

Read article
ARTICLE · 02

Cassandra's Vector Search: Unlocking Semantic Understanding

Read article
ARTICLE · 03

Cassandra BATCH architecture

Deep-dive on Cassandra BATCH: coordinator load, batchlog table, logged vs unlogged, single-partition atomicity, and the async-concurrency pattern for …

Read article
ARTICLE · 04

Cassandra bloom filters -- skipping SSTables that can't have the row

Deep-dive on Cassandra bloom filters: the multi-SSTable read problem, probabilistic set-membership, the no-false-negatives property (guaranteed absenc…

Read article
ARTICLE · 05

Cassandra commit log architecture

Deep-dive on the Cassandra commit log: sequential append-ahead-of-memtable durability, fixed-size segments and rollover, periodic vs batch sync trade-…

Read article
ARTICLE · 06

Cassandra Compaction Strategies

STCS vs LCS vs TWCS and when each one bites.

Read article
ARTICLE · 07

Cassandra Consistency Levels

How consistency levels (ONE, QUORUM, ALL, LOCAL_*) trade availability vs consistency per read/write.

Read article
ARTICLE · 08

Cassandra Hinted Handoff Architecture in Depth

A 2500-word walkthrough of Cassandra hinted handoff: coordinator stores hints, TTL, delivery, replay, hint storage, relationship to repair.

Read article
ARTICLE · 09

Cassandra memtable flush architecture

Deep-dive on Cassandra's write path: durability via the append-only commitlog, speed via the in-memory memtable, and the flus…

Read article
ARTICLE · 10

Cassandra Multi-DC Architecture in Depth

A 2500-word walkthrough of Cassandra multi-DC: DC-aware driver, LOCAL_QUORUM, NetworkTopologyStrategy, async replication, hinted handoff, repair, DR.

Read article
ARTICLE · 11

Multi-DC Cassandra Topology

Two-region Cassandra deployment. NetworkTopologyStrategy, rack awareness, LOCAL_QUORUM. Full topology with rack layout, snitch config, and replication…

Read article
ARTICLE · 12

Cassandra Operational Metrics

JMX + Prometheus. Which metrics matter most.

Read article
ARTICLE · 13

Cassandra paging -- fetching large result sets safely

Deep-dive on Cassandra paging: the large-result problem, page size, the paging-state cursor, driver auto-paging, cursors-not-offsets (efficient at any…

Read article
ARTICLE · 14

Cassandra Query Tracing

TRACING ON to diagnose slow queries. Understand output.

Read article
ARTICLE · 15

Cassandra Read Path End-to-End

Detailed walkthrough of a Cassandra read: coordinator selection, replica lookup, MemTable + SSTable merge, Bloom filter, key cache, block cache, read …

Read article
ARTICLE · 16

Cassandra read repair architecture

Deep-dive on Cassandra read repair: the coordinator compares a full read against replica digests, and on a mismatch reconciles by cell timestamp under…

Read article
ARTICLE · 17

Cassandra Repair

How Cassandra repair reconciles inconsistent replicas via Merkle trees, and how to schedule repair operations.

Read article
ARTICLE · 18

Cassandra snitch architecture

Deep-dive on the Cassandra snitch: why topology awareness is the precondition for surviving rack and datacenter failures, the snitch implementations (…

Read article
ARTICLE · 19

Cassandra speculative retry architecture

Deep-dive on Cassandra speculative retry: per-table latency tracking, PERCENTILE vs fixed vs ALWAYS/NONE policies, the coordinator hedge to a spare re…

Read article
ARTICLE · 20

Cassandra SSTable Format Architecture in Depth

A 2500-word walkthrough of Cassandra SSTable format: Data, Index, Summary, Filter, Statistics, CompressionInfo, TOC/Digest, and read path.

Read article
ARTICLE · 21

Cassandra bootstrap architecture

Deep-dive on Cassandra node bootstrap: token allocation algorithms versus random selection, range calculation and snitch-aware source selection, the z…

Read article
ARTICLE · 22

Cassandra tombstones

Deep-dive on Cassandra tombstones: deletes as markers in append-only LSM, gc_grace_seconds retention and compaction removal, read-scan impact and quer…

Read article
ARTICLE · 23

Cassandra vnodes architecture

Deep-dive on Cassandra virtual nodes: how many small tokens per node subdivide the ring, why num_tokens and the rack-aware allocation algorithm contro…

Read article
ARTICLE · 24

Cassandra Write and Read Path Architecture in Depth

A 2500-word walkthrough of Cassandra's write and read paths: coordinator, consistency level, memtable, SSTable, bloom, compac…

Read article
ARTICLE · 25

Cassandra Storage-Attached Indexing (SAI) — fast secondary indexes built into the SSTable engine

Deep-dive on Cassandra SAI: per-SSTable indexes built at flush time and merged through compaction, index components for text, numeric range, and vector queries, the local fan-out query path where each replica scans its own SSTables, the query-shape and selectivity constraints that keep fan-out bounded, index build lag, and the operational playbook for indexing non-key columns without the old secondary-index pitfalls.

Read article
ARTICLE · 26

Cassandra secondary indexes -- querying beyond the partition key

Deep-dive on Cassandra secondary indexes: the non-key-query problem, the local (per-node) 2i, scatter-gather across all nodes for global queries, cardinality pitfalls at both extremes, the denormalization alternative (query tables), materialized views, when 2i is OK (narrow per-partition queries), SAI as the modern index, and index-choice/cardinality/query-pattern operations.

Read article