Cassandra By Example: Data modeling with CQL3
summary
Builds a simple Twitter clone with CQL3 on Cassandra 1.2, showing the exact tables and queries: users table with username primary key, following and followers as clustered primary keys, tweets keyed by uuid, and per-user userline and multi-author timeline tables using timeuuid for time-range predicates and ORDER BY tweet_id DESC LIMIT 40. Writes use batch mutation to atomically insert into tweets, userline and every follower timeline. Notes rows can be extremely wide (practical upper bound ~2 billion columns).
AI-written summary · about
