Fowler Video Flashcards
(136 cards)
What primary pain sparked NoSQL?
Need for horizontal scale beyond single-node RDBMS limits.
In what year did the #nosql hashtag appear?
2009
List five common traits of NoSQL databases according to Fowler.
- Non-relational
- Cluster-friendly
- Open-source
- Web-era culture
- Schemaless
What is the definition of an aggregate?
Collection of related data read/written as a single unit.
What is the transaction boundary in aggregate stores?
The aggregate itself.
What does ACID stand for?
- Atomicity
- Consistency
- Isolation
- Durability
What does BASE stand for?
- Basically-Available
- Soft-state
- Eventual consistency
What trade-off does the CAP theorem present during a partition?
Must give up either Consistency or Availability.
Which CAP corner do most key-value stores pick?
AP
What is the key–value use-case sweet-spot?
Ultra-fast look-ups by ID and caching.
Give an example of a document store product.
MongoDB.
Give an example of a wide column-family product.
Cassandra.
Give an example of a graph database product.
Neo4j.
What makes graph DB traversals fast?
Index-free adjacency.
What does impedance mismatch refer to?
Object models versus relational tables.
What is the definition of sharding?
Partitioning data across nodes by key.
What is replication?
Maintaining copies of data on multiple nodes.
What is a benefit of leader–follower replication?
Fewer update conflicts; predictable writes.
What is a benefit of peer-to-peer replication?
No single write bottleneck.
What does eventual consistency mean?
Replicas converge given enough time.
What is read-your-writes consistency?
A client can immediately read its own write.
What is the quorum read formula in Cassandra?
R + W > N.
What does the map phase in Map-Reduce do?
Emits key-value pairs from each record.
What does the reduce phase do?
Aggregates values per key into summary.