Apache Cassandra

Apache Cassandra

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

84Articles
84Topics covered
Articles in this category

All 84 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 5.0 New Features

Vector search + storage-attached indexes + UCS + trie index.

Read article
ARTICLE · 04

Cassandra Backup + Restore

Snapshots, incremental, PITR patterns. Restore procedures.

Read article
ARTICLE · 05

Cassandra Backups

How Cassandra backup works: nodetool snapshot, incremental backups, and offsite backup strategies.

Read article
ARTICLE · 06

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 · 07

Batch Statements

LOGGED batches != transactions. Unlogged for atomicity within partition.

Read article
ARTICLE · 08

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 · 09

Bloom Filters

Per-SSTable Bloom filter. False positive rate tuning.

Read article
ARTICLE · 10

Cassandra's CAP Trade-offs in Practice

What AP actually means when you turn the knobs.

Read article
ARTICLE · 11

Cassandra Clustering

How clustering columns order rows within a partition, enable range queries, and affect storage.

Read article
ARTICLE · 12

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 · 13

Cassandra Compaction

The three main compaction strategies in Cassandra and how to choose based on workload.

Read article
ARTICLE · 14

Cassandra Compaction Strategies

STCS vs LCS vs TWCS and when each one bites.

Read article
ARTICLE · 15

Cassandra compaction strategies -- STCS, LCS, and TWCS

Deep-dive on Cassandra compaction strategies: the LSM SSTable-accumulation problem, STCS (size-tiered, write-optimized), LCS (leveled, read-optimized)…

Read article
ARTICLE · 16

Cassandra Consistency Levels

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

Read article
ARTICLE · 17

Cassandra consistency levels

Deep-dive on Cassandra's tunable consistency: coordinators and per-request CLs, R+W>RF overlap mat…

Read article
ARTICLE · 18

Consistency Levels

Per-query CL. Trade latency + availability + consistency. Concrete recommendations.

Read article
ARTICLE · 19

Cassandra counters architecture

Deep-dive on Cassandra counters: coordinator behavior, read-before-write, shard IDs for idempotency, consistency, and limitations.

Read article
ARTICLE · 20

Counter Columns

Distributed counters. Special semantics. Common pitfalls.

Read article
ARTICLE · 21

Cassandra Data Model

How Cassandra's data model works: partition keys distribute data, clustering keys order within partition, and why you design tabl…

Read article
ARTICLE · 22

Cassandra Data Modeling Basics

Query-first design and the partition-key contract.

Read article
ARTICLE · 23

Cassandra: Distributed Systems Lessons

Cassandra distributed systems lessons.

Read article
ARTICLE · 24

Cassandra Gossip

Nodes learn about each other via gossip. Phi accrual failure detector.

Read article
ARTICLE · 25

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 · 26

JVM + GC Tuning for Cassandra

G1GC standard. Heap sizing. Escape STW pauses.

Read article
ARTICLE · 27

Cassandra JVM Tuning in 2026

G1, ZGC, heap sizing, and what changed in recent releases.

Read article
ARTICLE · 28

Lightweight Transactions (LWT)

IF NOT EXISTS + IF conditions. Paxos-based. Cost 4x normal write.

Read article
ARTICLE · 29

Cassandra LWT architecture

Deep-dive on Cassandra Lightweight Transactions: Paxos rounds, coordinator, SERIAL consistency, contention penalty, alternatives.

Read article
ARTICLE · 30

Cassandra LWT: When and How

Lightweight transactions explained without the marketing.

Read article
ARTICLE · 31

Cassandra materialized view architecture

Deep-dive on Cassandra materialized views: base table, view definition, coordinator maintenance, consistency, rebuild, alternatives.

Read article
ARTICLE · 32

Materialized Views

Auto-maintained denormalized tables. Known issues. Avoid in production.

Read article
ARTICLE · 33

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 · 34

Migrating from Relational DB to Cassandra

Data modeling shift. Common pitfalls in migration.

Read article
ARTICLE · 35

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 · 36

Multi-DC Cassandra Deployment

NetworkTopologyStrategy + LOCAL_QUORUM. Latency + consistency.

Read article
ARTICLE · 37

Cassandra Multi-DC Design

Replication topology, network keyspace, and DC-aware reads.

Read article
ARTICLE · 38

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 · 39

Cassandra Multi-Datacenter

How Cassandra's multi-datacenter deployment enables geographic distribution with local reads and writes.

Read article
ARTICLE · 40

Cassandra Operational Metrics

JMX + Prometheus. Which metrics matter most.

Read article
ARTICLE · 41

Cassandra operations architecture

Deep-dive on Cassandra ops: rolling restart, node replacement, bootstrap, repair, capacity, GC/JVM tuning, compaction, upgrade.

Read article
ARTICLE · 42

Cassandra Pagination

Server-side paging via state cookie. Client patterns.

Read article
ARTICLE · 43

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 · 44

Partition Key Design

Right key = fast + balanced. Wrong key = hot partitions + OOM. Concrete patterns.

Read article
ARTICLE · 45

Cassandra Partitioning

How Cassandra distributes partitions via consistent hashing, virtual nodes, and the Murmur3 partitioner.

Read article
ARTICLE · 46

Prepared Statements

Compile once, execute many. Cache locally. Avoid CQL parsing overhead.

Read article
ARTICLE · 47

Cassandra Query Tracing

TRACING ON to diagnose slow queries. Understand output.

Read article
ARTICLE · 48

Cassandra Read Path

How Cassandra reads consult MemTable, row cache, bloom filters, and SSTables to reconstruct current row state.

Read article
ARTICLE · 49

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 · 50

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 · 51

Read Repair + Hinted Handoff

Automatic consistency mechanisms. When they help vs limits.

Read article
ARTICLE · 52

Cassandra Repair

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

Read article
ARTICLE · 53

Cassandra repair architecture

Deep-dive on Cassandra repair: Merkle trees, streaming sessions, full vs incremental, subrange, preview mode, Reaper scheduling, and gc_grace.

Read article
ARTICLE · 54

Cassandra Repair

Full vs incremental vs subrange. Reaper. Getting repair right.

Read article
ARTICLE · 55

Cassandra Repair in 2026

Full vs incremental vs subrange repair — what to actually run.

Read article
ARTICLE · 56

Replica Placement Strategies

SimpleStrategy vs NetworkTopologyStrategy. Multi-DC configuration.

Read article
ARTICLE · 57

Cassandra replication architecture

Deep-dive on Cassandra replication: RF, SimpleStrategy vs NetworkTopologyStrategy, consistency levels, hinted handoff, read repair.

Read article
ARTICLE · 58

Cassandra Storage-Attached Indexing (SAI)

Deep-dive on Cassandra SAI: per-SSTable indexes built at flush time and merged through compaction, index components for text, numeric range, and vecto…

Read article
ARTICLE · 59

Scaling Cassandra Up + Down

Add nodes: bootstrap. Remove: decommission or removenode. Ops runbook.

Read article
ARTICLE · 60

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, card…

Read article
ARTICLE · 61

Secondary Indexes

Native SASI, 2i. Not for high-cardinality. Anti-patterns to avoid.

Read article
ARTICLE · 62

Cassandra Secondary Index Traps

Why most secondary indexes are wrong and what to do instead.

Read article
ARTICLE · 63

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 · 64

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 · 65

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 · 66

Cassandra Storage Engine

How writes traverse memory + disk. Understand this to diagnose write pain.

Read article
ARTICLE · 67

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 · 68

Streaming Operations

How data moves between nodes. Rate limits. Common issues.

Read article
ARTICLE · 69

Cassandra for Time-Series

Bucketing, TWCS, and TTLs for the workload Cassandra is best at.

Read article
ARTICLE · 70

Token Ring + Virtual Nodes (vnodes)

How data distributes. Old single-token vs modern vnodes. Choice matters.

Read article
ARTICLE · 71

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 · 72

Tombstones

How deletes work + why they cause slow queries. Prevention + remediation.

Read article
ARTICLE · 73

Cassandra TTL architecture

Deep-dive on Cassandra TTL: default vs per-column, expiration, tombstones, gc_grace_seconds, TWCS, tombstone bloat, monitoring.

Read article
ARTICLE · 74

TTL

Per-cell TTL. Interaction with compaction. Best practices.

Read article
ARTICLE · 75

Tunable Consistency Worked Examples

Five real workloads and what CL to pick.

Read article
ARTICLE · 76

Cassandra 5 Vector Search

Native ANN with SAI in the database you already run.

Read article
ARTICLE · 77

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 · 78

Cassandra vs ScyllaDB in 2026

When the C++ rewrite is worth the migration.

Read article
ARTICLE · 79

Write Amplification in Cassandra

Write once, hit disk many times. Understand + minimize.

Read article
ARTICLE · 80

Cassandra Write Path

How Cassandra makes writes durable via CommitLog, buffers in MemTable, and flushes to SSTables on disk.

Read article
ARTICLE · 81

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