Skills / Data pipelines and data engineering / What data engineers do: ETL and ELT

Data pipelines and data engineering, lesson 1 of 8

What data engineers do: ETL and ELT

Analysts and data scientists can only work with data that is collected, cleaned and stored somewhere reliable. Building and running that plumbing is data engineering.

A company's data is usually spread across many systems: the website database, the payment provider, the CRM, the advertising platforms, spreadsheets. Each has its own format. A data engineer builds pipelines that bring it together.

ETL is the classic pattern:

  1. Extract: pull data out of each source, for example by calling an API or querying a database
  2. Transform: clean it, standardise formats, join sources together and calculate useful fields
  3. Load: write the result into a central store, often a data warehouse, a database designed for analysis

ELT swaps the last two steps: load the raw data into the warehouse first, then transform it there with SQL. Modern cloud warehouses are powerful enough to make this the common approach today. It keeps a copy of the raw data, so you can redo transformations when the rules change.

What makes a good pipeline:

  • Reliable: runs on schedule, and when something fails it alerts someone instead of failing silently
  • Repeatable (idempotent): running it twice for the same day does not create duplicate data
  • Tested: checks catch problems, such as a total that suddenly drops to zero or IDs that should be unique but are not
  • Documented: people know where each number comes from

A broken pipeline quietly feeding wrong numbers into reports is worse than no pipeline, because people make decisions on those numbers.

Try it: Pick an online shop. List four systems it probably gets data from, and describe in three steps how you would bring daily orders into one table for analysis.

Check yourself

1. What does the T in ETL stand for?

2. How does ELT differ from ETL?

3. What does it mean for a pipeline to be idempotent?