Data at Scale · 9 min read · Intermediate
Choosing SQL vs NoSQL (Key-Value, Document, Wide-Column)
Match storage engines to access patterns instead of hype: relational ACID vs key-value, document, and time-series stores.
What you'll learn
- Default to relational SQL when relationships and ACID transactions matter
- Pick key-value stores (Redis/DynamoDB) for ultra-low-latency lookups
- Evaluate consistency, schema evolution, and operational complexity
Overview
Match storage engines to access patterns instead of hype: relational ACID vs key-value, document, and time-series stores.
Great system design is about explicit trade-offs rather than memorizing buzzwords. Every architectural layer you add (caches, replicas, queues, shards) solves one bottleneck while introducing new operational failure modes.
Design Checklist
| Dimension | Questions to Ask |
|---|---|
| Traffic & Scale | What is the read-to-write ratio, peak QPS, and payload size? |
| Consistency | Can users tolerate eventual consistency for a few seconds, or do we need strict ACID? |
| Failure Modes | What happens if a cache node, replica, or downstream API times out? |
| Simplicity | Can a single well-indexed PostgreSQL instance handle the next 12 months of growth? |
Key Takeaways
- Default to relational SQL when relationships and ACID transactions matter
- Pick key-value stores (Redis/DynamoDB) for ultra-low-latency lookups
- Evaluate consistency, schema evolution, and operational complexity
Quick Check
Check Your Understanding
Score: 0 / 1
1. Which database category is usually the safest default for financial ledgers and multi-table relational business data?
Study Workspace
Finished this lesson?
Your progress is saved locally in your browser, no account needed.