System Design · Module 06
NoSQL databases and when to use them
- Lessons
- 11
- Free
- 0
- Reading
- ~3 h
Your progress
0 / 11 lessons done
Sign in to trackLessons
- SQL vs NoSQL: choosing a data storeDatabase choices shape how you query data, prevent conflicting updates and recover from failures. At work, the useful question is not which database category wins, but which design meets your workload with manageable complexity.
- Document and key-value databases comparedCarts and product catalogs can both contain JSON, yet need different storage operations. Choosing by those operations helps you avoid expensive scans, lost updates and unnecessary databases.
- Columnar and wide-column databases comparedSimilar database names can hide different access patterns. Understanding what each layout lets a query avoid helps you choose a store without moving the same bottleneck elsewhere.
- Graph databases: when relationships are the dataRecommendations, dependency analysis and access checks often follow connections rather than retrieve isolated records. You need to recognize when graph storage helps, and when traversal creates more work than your service can afford.
- Time-series databases: storing metrics and eventsDashboards can hide failures when timestamps, missing samples or summaries are handled incorrectly. Time-series design connects those correctness questions to storage growth and query cost.
- Distributed hash tables: decentralized key lookupA hash can identify a destination without telling you how to reach it. Distributed hash tables show how nodes cooperate to find that destination without every node knowing the whole cluster.
- Bloom filters: quickly checking whether an item existsStorage systems often spend work proving that a key is absent. Bloom filters can avoid that work, but only when their membership guarantee matches the data being searched.
- Data tiering: moving old data to cheaper storageHistorical records can consume expensive database capacity long after their busiest period. Moving them safely requires a retrieval contract and a verified handoff, not just a scheduled export.
- Object storage vs databases: where files belongProduct photos, documents and exports often grow faster than business records. Separating them can reduce database work, but it also creates failure cases that your application must handle.
- Polyglot persistence: using multiple databases togetherAdding a search engine or another database creates a new consistency boundary. You need to know which copy decides correctness, how changes reach other copies, and how to recover when they disagree.
- Case: how Discord scaled message storageGrowing storage can expose problems that adding nodes does not fix. This case connects data modeling, request control and migration safety.
Practise with
Terms this module teaches 34
Open glossaryAccess pattern
An operation an application needs to perform on stored data, including how it identifies, filters or orders that data.
Adjacency list
A representation that records the neighbors or incident relationships of each node.
Aggregate
A group of related data treated as one read or update boundary.
Archive rehydration
Making offline archived data available in an online storage tier before reading it.
Binary large object
File content represented as a sequence of bytes, often stored in a database binary field.
Bloom filter
A compact membership structure that can prove an item was not inserted, but can only say an item might have been inserted.
Checksum
A value computed from bytes to help detect whether their content differs from an expected value.
Clustering columns
In Cassandra, the primary-key columns after the partition key that identify and order rows inside a partition.
Columnar storage
A storage layout that groups values from the same field into readable blocks, letting queries avoid unnecessary fields.
Compaction
Merging immutable storage files to reduce redundant versions and reclaim data that is safe to remove.
Compare-and-set
An atomic operation that changes a value only if its current value or version matches an expected one.
Conditional write
A write that changes stored data only if a specified condition still holds when the database applies it.
Data tiering
Placing data in storage tiers that match its access frequency, retrieval requirements and cost.
Distributed hash table
A decentralized system that assigns keys to nodes and uses cooperating peers to locate the responsible node.
Document database
A database model that stores related fields together in documents that can include nested objects and arrays.
Event time
The time when an activity happened or a measurement applies, rather than the time a receiver received it.
False positive
A positive test result for an item that does not have the property being tested.
Finger table
A Chord routing table containing peers responsible for positions at exponentially increasing clockwise offsets.
Key-value database
A database model centered on storing and retrieving values through identifying keys.
Key-value interface
A storage interface that retrieves or changes a value using its unique key.
Node
An entity with an identity in a graph, such as a customer or product.
Object key
The identifier used to address an object inside its storage container.
Object storage
Storage that retrieves file bytes and their metadata using an object key inside a container.
Path
A sequence of relationships connecting nodes in a graph.
Polyglot persistence
Using different storage technologies within one system to serve different workloads.
Projection
A derived representation of authoritative data, shaped for a particular query.
Relationship
A connection between two graph nodes. In a property graph, it has a type, a direction and optional properties.
Request coalescing
Sharing one pending operation among overlapping requests that need the same result.
Rollup
A coarser summary formed by combining measurements over a larger time interval.
Series cardinality
The number of distinct time series identified by metric names and their identifying attribute combinations.
Source of truth
The authoritative owner of a fact when copies disagree.
Storage manifest
Metadata describing a stored data group, including its verified files, generation and serving location.
Time series
A sequence of timestamped measurements describing the same measured quantity and identifying attributes.
Wide-column database
A database family that organizes related data into keyed groups, with details that vary between implementations.