Cassandra-compatible, built for performance in C++
AP
๐ Graph Databases
Database
Type
Known For
CAP Trade-off
Neo4j
NoSQL (Graph)
Graph relationships, Cypher query language
CP
ArangoDB
Multi-model
Supports document, KV, and graph models
CP (configurable)
JanusGraph
Graph backend
Scales over Cassandra, HBase โ inherits their CAP traits
Inherited (CP/AP)
๐ง CAP Theorem Summary
Property
Meaning
C - Consistency
All nodes return the most recent committed data
A - Availability
Every request gets a non-error response (even if stale)
P - Partition Tolerance
The system continues to operate despite network splits
In distributed systems, you can only guarantee 2 of 3: C, A, and P.
๐งญ When to Use What?
ACID Transactions โ PostgreSQL, MySQL, Oracle
Flexible schema โ MongoDB, DynamoDB
Horizontal scalability โ Cassandra, DynamoDB
In-memory speed โ Redis
Graph queries โ Neo4j, ArangoDB
Offline/mobile โ SQLite, Firestore
๐ก Tip: CAP trade-offs are not always strictโmany modern databases let you choose between strong and eventual consistency modes depending on your use case.