1 Core Architectural Concepts
Masterless Ring Topology
Every node in the cluster is identical. There is no single point of failure (no primary/secondary). Any node can accept read and write requests and coordinate them with replica nodes via Gossip protocol.
LSM-Tree Write Path
Writes append sequentially to an on-disk CommitLog (durability) and write to memory Memtable before returning success in <1ms. In-memory data flushes to immutable SSTables asynchronously.
Tunable Consistency
Balance speed vs. consistency on every query: ONE (fastest, AP mode), QUORUM (strict consistency, CP mode where R + W > N), or LOCAL_QUORUM for multi-datacenter isolation.
ScyllaDB Advantage
C++ rewrite of Cassandra using the Seastar asynchronous framework. Replaces JVM garbage collection pauses with thread-per-core NUMA architecture, delivering 10× higher throughput and deterministic p99 sub-millisecond latencies.
2 CQL Schema: Agent Chat Thread Storage
Optimized Partition & Clustering Keys
The Partition Key determines node assignment; the Clustering Column sorts messages chronologically on disk for O(1) sequential reads: