Partitioning & Sharding

Splitting data across machines, and the one-way door of a partition key.

6Questions
12Flashcards
10Terms
Terminology

10 terms in this topic

concept

Consistent Hashing

A partitioning scheme where adding or removing a node moves only a small fraction of keys, instead of remapping everything.

case-study

Discord: Hot Partitions at Trillions of Messages

Discord partitions messages by channel and time bucket, because a single very busy channel would otherwise concentrate load on one partition.

concept

Hot Key

A single key or narrow key range receiving a disproportionate share of traffic, so one partition saturates while the rest of the cluster is idle - th…

concept

Hot Key

A single key or partition receiving a disproportionate share of traffic, so that a well-balanced key space still produces one overloaded node.

concept

Hot Partition

One partition receiving disproportionate traffic, so the system saturates at a fraction of its aggregate capacity.

concept

Partitioning and Sharding

Splitting data by a key — within one database for manageability, or across databases for capacity and isolation.

practice

Shard Key

The attribute deciding which partition a row belongs to - the single most consequential and least reversible choice in a partitioned data architecture.

pattern

Sharding in Practice

Splitting data across independent stores, how to choose the key, and why resharding is the operation nobody plans for.

pattern

Tenant Placement

Routing each tenant to a shared pool or a dedicated database according to its size and requirements, with an online migration path between them - the…

concept

Write Amplification

One logical write producing many physical writes - through fan-out, indexes, replication or storage-engine mechanics - and why it decides scaling limits.

Data Architecture

Neighbouring topics

Data Architecture

General material on structuring, storing and governing data.

10 quiz 31 cards 25 terms

Relational Modelling

Normalisation, keys, constraints and the invariants a schema enforces.

3 quiz 10 cards 4 terms

NoSQL Stores

Key-value, document, wide-column and graph — what each buys and forbids.

5 quiz 13 cards 4 terms

Indexing

Designing indexes per query shape, and paying for them on every write.

5 quiz 12 cards 6 terms

Query Optimisation

Reading a plan, fixing statistics, and finding the real bottleneck.

3 quiz 11 cards 4 terms

Transactions & Isolation

ACID, isolation levels, and the anomalies each level permits.

3 quiz 10 cards 4 terms

Replication

Primaries, replicas, lag, and synchronous versus asynchronous durability.

4 quiz 14 cards 6 terms

Caching Strategies

Cache-aside, read-through, write-through and where each belongs.

7 quiz 15 cards 6 terms

Cache Invalidation

Stampedes, penetration, staleness windows and versioned keys.

3 quiz 7 cards 2 terms

CQRS

Separating the write model from the read models that serve queries.

4 quiz 10 cards 5 terms

Event Sourcing

Storing the change log as the system of record, and what that costs forever.

5 quiz 13 cards 4 terms

Change Data Capture

Turning a database's replication log into a stream, and its coupling risk.

5 quiz 14 cards 5 terms

Data Warehousing

Dimensional modelling, star schemas and analytical workloads.

4 quiz 13 cards 3 terms

Data Lakes & Lakehouses

Open formats on object storage with transactional metadata on top.

4 quiz 11 cards 4 terms

ETL & ELT

Where transformation happens, and how much raw history you keep.

3 quiz 9 cards 3 terms

Streaming Data

Windowing, watermarks, late arrivals and exactly-once semantics.

3 quiz 10 cards 2 terms

Data Governance

Ownership, lineage, quality, catalogues and who may see what.

3 quiz 9 cards 4 terms

Data Lifecycle & Retention

How long data is kept, where it ages to, and how it is actually deleted.

4 quiz 11 cards 5 terms

Polyglot Persistence

Choosing a store per workload, and the operational cost of variety.

6 quiz 12 cards 4 terms