Developing with Cassandra
|
Preview | Unofficial | For review only |
This section is for application developers who build on Apache Cassandra. It covers data modeling, the CQL query language, SAI, ACID transactions, vector search, drivers, and application patterns.
Find Your Path
Not sure where to start? Pick the journey that matches where you are.
- New to Cassandra?
-
Start here — Quickstart | Choose a Driver | Data Modeling Fundamentals
- Upgrading from Cassandra 5?
-
What changed — Upgrade Guide | ACID Transactions | SAI Usage Patterns | Schema Constraints
- Building AI or Vector Search Apps?
-
Get started — Vector Search | AI Application Patterns | AI Coding Assistants
- Scaling to Production?
-
Prepare — Production Readiness | Driver Tuning | Observability | Troubleshooting
What’s New for Developers in Cassandra 6
-
ACID Transactions — ACID transactions across partitions with
BEGIN TRANSACTION/COMMIT -
Schema Constraints — Enforce data integrity rules at the database level
-
Vector Search — Experimental ANN search with vector embeddings and SAI indexes for AI/ML applications
-
New CQL operators —
BETWEEN,NOT, andLIKEfor more expressive queries -
SAI on frozen collections — Storage-attached indexes now support frozen collection types
-
Slow-query virtual table — Monitor slow queries directly from CQL
Recommended Reading Path
-
Quickstart — Connect and run your first queries
-
Data Modeling — Design tables for your access patterns
-
CQL — Learn the query language
-
Drivers — Connect from your application
-
Adopting ACID Transactions — Add multi-partition correctness where it matters
-
SAI Usage Patterns — Use Cassandra’s recommended indexing engine well
-
Vector Search — Explore experimental AI-powered retrieval patterns
-
Troubleshooting — Debug common issues
Vector Search
-
SAI Concepts — the index engine powering vector search
Popular Guides
-
Choosing Consistency Levels — pick the right consistency for your use case
-
Time-Series Modeling — partition bucketing, TTL, and TWCS
-
Paginating Query Results — safe pagination patterns
-
Retries and Idempotence — retry safely in distributed systems
-
Adopting ACID Transactions — multi-partition atomic operations
-
SAI Usage Patterns — when and how to use Cassandra’s recommended secondary indexes
-
Schema Migrations — evolving your schema safely
-
Code Examples — complete examples in Java, Python, and CQL