Theory · Page 25 of 34 · Pipeline patterns

25. ELT: load, then transform in the platform

ELT loads the data into the target platform first, as it came, and transforms it there with the platform's own engine. Keeping the raw data makes rules easy to change and history easy to rebuild; it also puts unchecked, sensitive data inside the platform, where it needs an owner and access control of its own.

Load first, transform in the platform
Playback speed

The clip copies the ten claim events into the platform's raw zone unchanged, health note and unknown policy included. It shows the four roles that might read the raw zone and which of them can, with access restricted. Then one SQL statement inside the platform validates, converts and masks, and writes the curated table: nine rows, the same total as ETL. A changed rule is the same SQL run again on the raw rows, with no read of the source; and the raw zone itself needs an owner and access granted on purpose.

The intuition: unpack inside, in a locked room

Harbour Mutual's actuaries keep changing their mind about how to group claims, and each time they want last year regrouped. With ETL, last year's raw claims are gone; the source must be read again, if it still has them. So the data team proposes the other order: copy the claims into the lakehouse exactly as they came, and do the cleaning there, with the lakehouse's own SQL.

That makes the raw claims a thing that lives in the platform. The health note and the claim on a policy that does not exist are both in it. The data is unpacked inside the house now, so the room it is unpacked in needs a lock, a list of who has the key, and someone who answers for it.

Remember ELT keeps the raw data in the target and transforms it there; the raw zone is data with an owner and access control, not a staging folder.

How it works, step by step

Extract and load copy the source's data into the target platform without changing it: into a raw zone (the bronze layer of page 20). The copy is fast and simple, because there is nothing to decide on the way.

Transform then runs inside the platform, usually as SQL, reading the raw tables and writing curated ones (silver and gold). The platform's engine does the work, close to the data, and the transformation is code in the platform that can be versioned, tested and run again.

Because the raw data stays, a changed rule is applied by running the new SQL over the raw tables: reprocessing without reading the source. History can be rebuilt as often as the rules change.

The raw zone, though, holds everything the source sent: data that has not been validated and data that has not been masked. ELT therefore needs access control on the raw zone (only the pipeline's identity and the engineers who run it), an owner who decides who else may read it and how long it is kept, and a classification (page 15) that says what it contains.

The ELT transformation as the platform runs it on the raw rows (PostgreSQL; run on PostgreSQL 18.3 in CI, it gives the engine's nine rows)
WITH raw_claims (event_id, claim, policy, line, amount, currency, medical_note) AS (
  VALUES
    ('E01', 'C-201', 'P-1001', 'motor', 1200, 'EUR', NULL::text),
    ('E02', 'C-202', 'P-1002', 'home', 2400, 'EUR', NULL::text),
    ('E03', 'C-203', 'P-1003', 'travel', 800, 'GBP', 'Fractured wrist, treated in hospital abroad'),
    ('E04', 'C-204', 'P-9999', 'motor', 650, 'EUR', NULL::text),
    ('E05', 'C-205', 'P-1005', 'home', 3100, 'EUR', NULL::text),
    ('E06', 'C-206', 'P-1006', 'motor', 950, 'EUR', NULL::text),
    ('E07', 'C-207', 'P-1007', 'home', 4200, 'EUR', NULL::text),
    ('E08', 'C-208', 'P-1008', 'motor', 700, 'EUR', NULL::text),
    ('E09', 'C-209', 'P-1009', 'travel', 1500, 'EUR', NULL::text),
    ('E10', 'C-210', 'P-1010', 'home', 2600, 'EUR', NULL::text)
),
known_policies (policy) AS (
  VALUES ('P-1001'), ('P-1002'), ('P-1003'), ('P-1006'), ('P-1007'), ('P-1008'), ('P-1009'), ('P-1005'), ('P-1010')
)
SELECT r.event_id, r.claim, r.line,
       CASE WHEN r.currency = 'GBP' THEN ROUND(r.amount * 1.15)::int ELSE r.amount END AS amount_eur,
       CASE WHEN r.medical_note IS NULL THEN '' ELSE '[withheld: health details]' END AS note
FROM raw_claims AS r
JOIN known_policies AS p ON p.policy = r.policy
ORDER BY r.event_id;

By hand

Load the ten events raw, decide who may read them, then transform them inside the platform.

The ten events, as they land in the raw zone
EventClaimPolicyReportedReached the logAmountNote
E01C-201P-100109:01:4009:02:10€1,200–
E02C-202P-100209:0409:04:50€2,400–
E03C-203P-100309:06:3009:07:45£800health details
E04C-204P-999909:0909:09:40€650–
E06C-206P-100609:14:2009:15:05€950–
E07C-207P-100709:14:5009:15:12€4,200–
E08C-208P-100809:1509:15:20€700–
E09C-209P-100909:18:3009:19:10€1,500–
E05C-205P-100509:12:1009:21:30€3,100–
E10C-210P-101009:2409:25:40€2,600–
  1. How many rows are in the raw zone, and how many of them would every reader of a curated table have to be protected from?
    Predict the result, then check it 10 rows; 1 carries health details and 1 names a policy that does not exist.
  2. Four roles might read the platform. With the raw zone open, how many of them can read the health note?
    Predict the result, then check it All 4.
  3. With access restricted to the pipeline's identity and the platform engineers, how many?
    Predict the result, then check it 2.
  4. The SQL validates, converts and masks. How many curated rows, and what total?
    Predict the result, then check it 9 rows, €17,570: the same answer as ETL.
  5. The rule for travel claims changes. How many reads of the source system does reprocessing need?
    Predict the result, then check it 0: the SQL runs again over the raw rows.

What you found: The same 9 curated rows as ETL, with the raw 10 kept for the next rule change, and 2 roles that can read them.

Why this step
Load raw, unchanged
Without it: A rule applied on the way in cannot be undone or redone; the history is shaped by today's rules for ever.
Restrict the raw zone to the pipeline and its engineers
Without it: Every analyst can read health details and unchecked claims that the curated tables were built to hide.
Give the raw zone an owner and a retention period
Without it: Nobody decides who may read it or when it is deleted, and it grows into the swamp of page 20.
Keep the transformations as versioned code in the platform
Without it: Nobody can say which version of a rule built last quarter's table.
People often think…
Raw data is only staging, so it needs no governance.
In fact: It holds everything the source sent. Here 1 raw row carries health details; with the raw zone open, 4 roles can read it.
ELT is ETL with the letters swapped.
In fact: The difference is where the rules run and what is kept. ELT can reprocess with 0 source reads; ETL needs 10.
ELT is always cheaper.
In fact: It moves the work into the platform; whether that is cheaper depends on the platform's price for compute and how often the raw data is reprocessed.

When it fits, and when it does not

  • Fits: a lakehouse or warehouse whose engine can do the work, rules that change, history that must be rebuilt, and a raw zone you can restrict and own.
  • Does not fit: data that must not enter the platform unreduced at all (for example when the platform's operators may not see it), or a target with no place where raw data can be kept apart from its readers: then the rules run before it (page 24).

Design notes

Treat the raw zone as a product of the platform team: classified, owned, retained for a stated period and readable only by named identities. Curated tables then carry lineage back to the raw rows they came from, which makes "where did this number come from?" answerable to the event.

Why it matters

Most modern platforms are built ELT-first, and most of their governance failures are in the raw zone: a folder everyone was given access to in the first week. Choosing ELT is choosing to govern raw data.

On Azure (checked against Microsoft Learn on 24 October 2026)

  • Azure Data Factory or Fabric's Data Factory copies the data into the lake unchanged; the transformation runs as SQL or Spark in Azure Databricks or a Fabric lakehouse or warehouse.
  • Access to the raw zone is granted with Microsoft Entra groups on the storage or the catalogue (chapter 22), not inherited from the workspace.

Where it goes wrong

  • The open raw zone. Analysts read the raw tables because they are there, health details included.
  • Raw for ever. Nobody set a retention period, so data that should have been deleted is kept.
  • Transformations nobody owns. SQL spread over notebooks with no version and no test.
  • Reading raw in reports. A report built on the raw zone skips every rule the curated tables apply.
You can now…
  • Explain how ELT differs from ETL in where the rules run and what is kept.
  • Say why a raw zone needs an owner, a retention period and restricted access.
  • Reprocess history after a rule change without reading the source again.
  • Choose between ETL and ELT by who can read the target.

Check yourself

Choose an answer to each question, then press Check.

1. With access to the raw zone restricted, how many of the four roles can read the health note?
2. What does ELT keep that ETL does not?
3. A report reads the raw zone directly. What has it skipped?
Answer every question first.

Sources

The works this page draws on, summarised in its own words rather than quoted. Read them for the full argument.

  • M. Kleppmann, Designing Data-Intensive Applications (O'Reilly, 2017), chapter 10Keeping immutable input data so that derived data can always be recomputed.
  • Delta Lake documentation: the medallion architectureRaw (bronze), refined (silver) and aggregated (gold) tables in one platform.
  • DAMA International, DAMA-DMBOK 2 (Technics Publications, 2017), chapter 8Data integration and interoperability, including where transformations run.

Practise it

The chapters that put this theory to work on Harbour Mutual and Kestrel:

The tools to try it in:

  • Pipeline patterns lab · Run the same claim events through eight pipeline patterns and see latency, overhead, a consumer failing, a delivery repeated and a logic change replayed.

Terms taught here: ELTRaw zone

An unhandled error has occurred. Reload 🗙

Reconnecting…

Your connection to the Cloud Data Architecture Lab dropped, probably a Wi-Fi blip. Hold on while it reconnects.

The connection could not be restored. The page will reload in a few seconds.