NoSQL Types Overview (Key-Value, Document, Column-Family, Graph)
Deconstruct the 4 major NoSQL families: Key-Value (Redis), Document (MongoDB), Wide-Column (Cassandra), and Graph (Neo4j) architectures and use cases.
01.1. The 4 NoSQL Paradigms
NoSQL databases are classified into four distinct architectural families based on their underlying data structure and storage engine design:
-
Key-Value Stores (Redis, Memcached, DynamoDB, Aerospike):
- The simplest model: maps a unique string key to an arbitrary value (string, hash, list, set, or binary blob).
- Provides
O(1)constant-time point lookups. - Best For: In-memory caching, user session management, shopping carts, rate limiting, and real-time leaderboards.
-
Document Databases (MongoDB, Couchbase, AWS DocumentDB, Firebase Firestore):
- Stores data as semi-structured, self-describing JSON or BSON documents.
- Documents can have polymorphic schemas (different documents in the same collection can have different fields).
- Supports secondary B-Tree indexes on deeply nested JSON fields (e.g.,
items.price). - Best For: E-commerce product catalogs, user profiles, blogs, and content management systems (CMS).
-
Column-Family / Wide-Column Stores (Apache Cassandra, ScyllaDB, Google BigTable, HBase):
- Organizes data into rows containing dynamic column families indexed by a Partition Key and sorted by a Clustering Column.
- Uses Log-Structured Merge (LSM) Trees and immutable SSTables to deliver massive write throughput (hundreds of thousands of writes per second per node).
- Best For: IoT telemetry streams, financial time-series metrics, chat history, and audit logging.
-
Graph Databases (Neo4j, Amazon Neptune, Memgraph):
- Uses graph theory structures consisting of Nodes (Entities) connected by directed, typed Edges (Relationships) with key-value properties.
- Implements Index-Free Adjacency: Each node holds direct physical memory pointers to its adjacent neighbor nodes, executing multi-hop recursive queries in
O(1)pointer-dereference time per hop (compared to relational databases where multi-hop queries require expensiveO(N log N)recursive joins). - Best For: Social networks ("Friends of Friends"), knowledge graphs, anti-money laundering fraud detection, and recommendation engines.
The 4 Major NoSQL Database Architectures & Workload Profiles ποΈ
The 4 Major NoSQL Database Architectures & Workload Profiles ποΈ
Structural breakdown of Key-Value (O(1)), Document (JSON), Column-Family (LSM/SSTables), and Graph (Index-Free Adjacency) databases.
Unlock Topic #51: NoSQL Types Overview (Key-Value, Document, Column-Family, Graph)
You are viewing a preview. The full in-depth engineering deep dive, interactive simulators, architecture flowcharts, and self-assessment quizzes for this topic are available with Pro or Lifetime Access.
Failure modes, high-throughput bottlenecks, and real FAANG implementation decisions.
Interactive system topology diagrams, live parameter simulators, and downloadable SVG charts.
Staff-level multiple-choice quiz questions with instant feedback and answer explanations.
Firebase Google authentication automatically syncs your completed topics and quiz scores.
How clear and staff-actionable was this system breakdown?