Data Engineering · Module 06
Data pipelines: ETL and ELT
- Lessons
- 11
- Free
- 1
- Reading
- ~3 h
Your progress
0 / 11 lessons done
Sign in to trackLessons
- Data pipelines: moving data reliablyEvery data team ends up with dozens of pipelines that run all day and fail every week. Whether a failure costs five minutes or a missed morning report depends on how the pipeline is split into steps, not on how much data it moves.
- ETL vs ELT: where the transformation happensFreeEvery data team decides where its cleaning and business rules run. That choice sets who can change a rule, what a fix costs, and which personal data ends up in the warehouse.
- Ingestion patterns: full, incremental and append-onlyEvery new source a data team connects needs one decision first: copy all of it each run, only what changed, or only what’s new. Pick wrong and the warehouse either reads terabytes it didn’t need, or quietly keeps rows the source deleted.
- Idempotent pipelines: safe to run twiceEvery orchestrator retries, every team reruns failed days, and every incremental load re-reads some rows on purpose. A pipeline that isn’t safe to run twice turns each of those into duplicated revenue or missing orders, usually with no error.
- Incremental loads with watermarksMost hourly and nightly loads from application databases track “the last change we loaded” in a small table. When that bookmark is wrong, rows go missing without any error, and the first person to notice is usually finance.
- Late and out-of-order records in batch pipelinesEvery batch pipeline that reports by day meets records that turn up after their day was published. Data engineers decide which days get rebuilt, which version of a record wins, and when a published number stops moving, and finance teams hold them to it.
- Reverse ETL: sending data back to business toolsMarketing, sales and support teams work in their own tools, not in the warehouse. Reverse ETL is how a segment or score built by the data team reaches the screen where someone acts on it, and when it goes wrong, real customers get the wrong message.
- Managed ingestion tools vs custom codeEvery data team ends up with a list of sources and too few hours to keep their extract code alive. Deciding which ones to buy, which to write with a library and which to keep is a recurring call on cost, control and risk.
- Pipeline failures: detection and recoveryEvery pipeline fails sometimes. What decides the cost is how soon someone knows, and whether a rerun can fix the data before people read it.
- Data pipelines for AI: documents, embeddings and LLMsSearch and chatbot features read from a vector store that a data pipeline fills. If that pipeline re-embeds everything, it is slow and expensive; if it misses changes or deletes, the AI answers from text that no longer exists.
- Design: ingesting orders from five sourcesAlmost every company’s key number comes from more than one place: its own database plus partners, marketplaces or acquired systems. Each one arrives differently, and the report is only as trustworthy as the least reliable of them.
Practise with
No tools or paper guides for this module yet.
Terms this module teaches 29
Open glossaryAdjustment entry
A row that records a change to a closed period’s figures on a day that is still open, so the closed period never changes.
Append-only load
A load for records that never change after they are written: each run adds the records after the last position it loaded, with no updates or deletes.
CRM (customer relationship management tool)
A business tool that keeps one record per customer or contact, and that marketing, sales or support teams use to message and track them.
Cursor column
A column an incremental load uses to find new and changed rows; its value must grow on every write and never go backwards.
Customer segment
A group of customers defined by a rule over their data, used to decide who gets a message, offer or treatment.
DAG
A directed acyclic graph: in an orchestrator, a set of tasks and the dependencies that decide the order they run in, with no loops.
Deadline alert
A time by which a whole pipeline run should be finished, with an action, such as paging someone, that runs if it isn’t. In Airflow 3.1 and later it warns but does not stop the run.
ELT
Extract, load, transform: a pipeline that loads raw rows into the warehouse first and then transforms them there, usually with SQL.
Embedding cache
A table of vectors keyed by a hash of the exact text embedded and the model that made them, so a pipeline never pays to embed the same text with the same model twice.
ETL
Extract, transform, load: a pipeline that cleans data and applies business rules on its own engine before writing finished tables into the warehouse.
External id
Your own system’s key for a record, stored on the matching record in another tool so later updates find the same record.
External stage
A named Snowflake object that points at a location in cloud object storage, so COPY and queries can read files from it.
Freshness check
A check that measures how old the newest loaded record is, and alerts when it is older than a set limit. It looks at the data’s own time, not when the job last ran.
Full load
A load that reads every record of a source on each run and replaces the previous copy with it, so deleted records disappear from the copy too.
HMAC
A hash computed with a secret key mixed in, so only someone with the key can produce or check the result.
Ingestion connector
Code that knows how to read one kind of source, such as an API, database or file drop, and write its records to a destination, keeping track of what it has already copied.
Landing zone
The place in object storage where a pipeline writes raw data exactly as it was extracted, before loading it anywhere else.
Load metadata
A warehouse’s record, per table, of which files it has already loaded, so a repeated load command skips them.
Lookback (incremental load)
A margin an incremental load re-reads behind its stored position on every run, so rows that committed late are not missed.
Monthly active rows
A billing count used by some managed ingestion tools: the number of distinct rows, by primary key, inserted, updated or deleted in a calendar month, each counted once however often it changes.
Out-of-order record
A version of a record that reaches the pipeline after a newer version of the same record, so load order disagrees with the order the changes were made.
Reporting date
The day a change counts on in a finance report: the event’s own day while that day is open, and the day the change was loaded after the day has closed.
Restatement
A change to a number after it was published, recorded and announced with the reason and the amount.
Reverse ETL
Copying results computed in the analytical store back into the apps and tools that run the business.
Silent failure
A pipeline failure where every task reports success but the data it produced is missing, late or wrong, so nothing alerts until someone reads a bad number.
Snowflake
A cloud data warehouse that stores tables and runs SQL on compute you start and stop separately, billed for storage and for compute time.
Task (pipeline)
One step of a data pipeline that an orchestrator starts, retries and reruns on its own, reading one finished input and writing one finished output.
Virtual warehouse
In Snowflake, a cluster of compute that runs queries, separate from where the data is stored, and can be started, stopped and sized on its own.
Watermark (incremental load)
The newest value of a change column, such as updated_at, that an incremental load has already copied; the next run reads rows after it.