NoSQL DB Terminology Flashcards
What is a NoSQL Database
non relational database designed to handle large volumes of unstructured, semi-structured, or structured data with high scalability and flexibility.
data models: Support diverse data models like key-value, document, graph, distributed architecture, and performance
use-case - for big data, real-time analytics, modern applications
What are some examples of NOSQL Databases
MongoDB, Cassandra, Redis
Amazon DynamoDB
Azure Cosmos DB
Google Cloud Firestore
What is High Availability
HA means the db stays up and running with minimal downtime.
It does this through replica sets to automatically switch to a backup node if the primary fails.
This ensures the data is always accessible.
HA is achieved through distributed architecture, replication, automatic failover, eventual consistency.
What is Distributed Architecture
data is replicated across multiple nodes or servers, often in different geographic regions, ensuring that if one node fails, others can take over
What is Replication
multiple copies of data are maintained (e.g. leader-follower or peer to peer replication), allowing failover to a replica if the primary node goes down
What is Automatic Failover
system detects failures and reroutes requests to healthy nodes without manual intervention
What is ‘Eventual Consistency’
Many noSQL db’s prioritize availability over immediate consistency, ensuring data remains accessible even if updates are temporarily inconsistent across nodes
What is Federation?
Splitting a NoSQL db into smaller, independent databases (or shards) based on logical or functional boundaries, where each federated db handles a specific subset of the application’s data or workload.
What is Sharding
partitioning a single NoSQL db across multiple nodes or servers, where each shard holds a subset of the data based on a shard key (e.g. user ID).
Federation vs Sharding
both enhance scalability and performance in NoSQL systems, but address different needs:
Federation organizes data by function or domain
Sharding distributes a single dataset for parallel processing.
What is Fault Tolerance
db’s ability to continue operating reliably and maintain data availability in the event of a hardware failure, network issue, or other disruption.
MongoDB achieves fault tolerance through its replica sets.