Production Flows · Knowledge Base

Data Pipeline

Everything behind a pipeline that must be operated. Ingestion and orchestration, batch and streaming, lakehouse and cloud — plus the quality, reliability, and observability that keep it trustworthy.

25 chapters5 levelszero → advanced
Start
01

Foundations

6 chapters
01

What a Data Pipeline Is & Why It Matters

Source to sink, what breaks without a pipeline, and the four-stage, two-guardrail frame every later chapter zooms into.

Four stagesGuardrailsSource to destinationManual taxMental model
Read chapter →
02

The Data Pipeline Lifecycle

Ingest, store, transform, serve, and observe: the end-to-end mental model and where bounded vs unbounded data fits.

IngestStoreTransformServeObserve
Read chapter →
03

Batch vs Streaming vs Micro-Batch

Batch and streaming are two execution models, not two speeds: one runs a job to completion, the other never stops, and micro-batch just shrinks the batch window; choose between them by how fresh the answer actually needs to be.

BatchStreamingMicro-batchLatencyWhen
Read chapter →
04

ETL vs ELT

Transform-then-load vs load-then-transform: the order decides which engine runs the transform and what form the data is in when it crosses into the destination — not reprocessability, who can build, or schema enforcement — plus the compliance/audit angle and how open table formats are dissolving the boundary.

ETLELTComplianceWarehouseTradeoffs
Read chapter →
05

Data Sources & Ingestion Patterns

Files, APIs, databases, events, and SaaS connectors; full vs incremental loads; pull vs push and where each fits.

APIsFilesDatabasesFull vs incrementalPull/push
Read chapter →
06

Change Data Capture (CDC)

Log-based, query-based, and trigger-based CDC; streaming changes off an operational DB, and why CDC beats polling.

Log-basedQuery-basedTriggersDebeziumvs Polling
Read chapter →
02

Building & Orchestration

6 chapters
03

Streaming & Real-Time

4 chapters
04

Production, Quality & Advanced

8 chapters
17

Data Quality & Validation

The six quality dimensions, a real check for each, where the gate belongs in the pipeline, quarantine vs circuit breakers, and the same rules written in dbt, Great Expectations and Soda.

Six dimensionsWriting checksGate placementQuarantinedbt / GX / SodaStarter kit
Read chapter →
18

Data Observability & Monitoring

The five pillars, what "normal" actually means (baselines and seasonality), SLI vs SLO vs SLA with error budgets, alert routing that survives contact with a rota, and lineage as a blast radius.

Silent failuresFive pillarsBaselinesSLI/SLO/SLAAlert routingBlast radius
Read chapter →
19

Schema Evolution & Data Contracts

What a schema states in five languages, which side to deploy first per compatibility mode, expand-and-contract for breaking changes, registries and what they cannot protect, real contract files, and the semantic break that passes every check.

What a schema isCompatibilityExpand-and-contractRegistriesContract filesSemantic breaks
Read chapter →
20

Storage Layers & File Formats

What bytes scanned actually cost, row vs columnar layout and encodings, inside a Parquet file, a lake built up from bucket to catalogued table, how a table format commit is atomic, and copy-on-write vs merge-on-read.

Scan costColumnarParquet internalsLakes & catalogsTable formatsCoW vs MoR
Read chapter →
21

Scaling & Performance

What a cluster is made of, sizing partitions with a number rather than a hunch, what a shuffle physically does, fixing skew with real code, reading a slow job off the Spark UI, and what every fix is worth in pounds.

Cluster anatomyPartition sizingSkew & shuffleDiagnosingSmall filesCost levers
Read chapter →
22

Reliability, Failure & Recovery

Eight failure modes and which announce themselves, retry policies that help rather than hurt, what a checkpoint really guarantees, RPO and RTO priced against a real data-loss incident, restore drills, and the post-mortem that stops it twice.

Failure modesRetriesCheckpointsRPO / RTORestore drillsPost-mortems
Read chapter →
23

Security, Governance & Compliance

Controller vs processor and what the acronyms mean, a treatment per column, why pseudonymised data is still personal data, who can actually call Decrypt, real row and column policies, and tracing one erasure request through twelve systems.

The vocabularyPer-column controlsAnonymityKeysRow/column policyErasure
Read chapter →
24

Applied Pipeline Design: How To Architect Any Pipeline

A six-step method including the build gate and the constraints nobody writes down, a stakeholder interview you conduct, two design labs you decide yourself, and a word-for-word interview narration with the pushback questions.

Six-step methodClarifying questionsConstraintsBuild or notTwo design labsNarration
Read chapter →
05

Reference

1 chapters