What is ETL (Extract Transform Load)?

ETL stands for extract, transform and load. It is a data integration process that reads data from one or more sources, changes it into the form required by a destination, then loads the prepared result into that destination. ETL is commonly used to build reporting datasets, combine information from different systems and prepare data for analysis.
The three letters describe the work and its order relative to the chosen destination. They do not guarantee that the source was complete, the transformation was correct or the load was safe to repeat. A useful ETL process needs explicit input boundaries, transformation rules and checks on the result people actually use.

The infographic places extraction, transformation and loading between a defined source scope and a checked, published result. Those surrounding controls are what make a repeatable pipeline trustworthy.
How do extract, transform and load work?
Consider a UK home lab that collects measurements from several devices. One source exports rates in megabits per second, another uses bits per second, and a third repeats records after a retry. An ETL job could extract a defined set, standardise units and identities, then load a reporting table.
That is one pattern within a data pipeline. A pipeline describes the connected workflow more broadly, including scheduling, transport, validation and publication. Not every pipeline changes data, while ETL explicitly includes a transformation stage.
Extract: read the intended source data
Extraction might read a database, API, file export or retained event log. Decide which records or file versions belong to the run, what permissions are required and how the source can be read without unacceptable operational impact.
A staging area can hold extracted inputs while the job works. That can support retries and investigation, but retention must be deliberate. A filename alone does not identify a stable input if another process can overwrite its contents.
Extraction is also a consistency question. Reading separate pages or tables while the source changes can create a mixture of states. Use the source's supported snapshot, export or change-capture mechanism where appropriate, and record its boundary rather than assuming a successful download is a coherent dataset.
Transform: apply rules with a defined meaning
Transformation can standardise types and units, validate fields, identify duplicates, join reference data, calculate derived values or aggregate records. The rules need to describe meaning as well as syntax.
For example, a missing measurement is not automatically zero. Zero may mean a valid observation, while a missing value could mean a failed sensor or absent source record. Replacing both with zero can make a report look healthy while changing its meaning.
Keep the transformation version and relevant reference-data versions with the run. Otherwise, a retry may read identical source bytes but produce a different result after a mapping or calculation changes.
Load: write according to the destination contract
Loading can append new records, update matching records, replace a defined partition or publish a complete new dataset version. Specify the key, constraints, handling of deletions and the point at which consumers should see the new result.
A job can load successfully according to the database and still create the wrong reporting data. For example, appending a replayed measurement twice may satisfy the table's technical rules if no appropriate uniqueness constraint exists.
Keep data flow and control flow distinct
Data flow is the movement and transformation of records. Control flow coordinates tasks, dependencies, failure handling and publication. A scheduler can arrange the stages, but it does not establish that the transformation rules are correct.
Stages can overlap for different chunks or partitions when the design supports it. The system need not finish extracting every record before it transforms the first one. Dependencies and publication rules still determine when a complete result is ready.
ETL versus ELT
ELT means extract, load and transform. The main distinction is where the substantial transformation happens relative to the chosen analytical destination. A raw landing or staging copy does not, by itself, settle the classification.
The Azure Architecture Center's ETL explanation distinguishes a separate transformation stage from transformations performed using the destination's processing capabilities. Real designs can combine both approaches.
Question | ETL | ELT |
|---|---|---|
When is the main target-ready transformation performed? | Before loading the prepared data into the chosen target | After initial loading into the target environment |
Where does transformation run? | A separate processing stage or engine, potentially close to the source | Primarily using the target environment's processing capabilities |
What needs careful control? | Staging, transformation rules, transfer and publication | Raw-data access, target resource use and publication of curated results |
Is one always faster or cheaper? | No; workload, movement and resources determine the result | No; target compute and repeated transformations still have costs |
ETL may suit a constrained destination or a requirement to minimise what reaches it. ELT may suit a target with useful transformation capabilities and a controlled need to retain raw data. Neither acronym proves that data quality, access controls or recovery are adequate.
Is ETL always batch processing?
No. ETL describes the extraction, transformation and loading pattern, while batch and stream processing describe how work progresses. A bounded nightly export and a continuing flow of changes can both include those stages.
Batch execution gives a run a defined input set and completion point. A continuing design must also manage ordering, late records, retained state and output updates. Calling a job “real time” is not evidence that its complete path meets a particular freshness deadline.
Choose the execution model according to the result needed. A daily report may benefit from a clearly reconciled snapshot; an operational alert may need a faster path with explicitly different completeness rules.
Full extraction, incremental extraction and CDC
A full extraction reads the selected source scope again. An incremental extraction aims to identify changes since an earlier position. It can reduce repeated work, but only if the change-detection mechanism covers the changes the destination needs.
A timestamp or increasing sequence can act as an incremental cursor, sometimes called a watermark. In this context it tracks extraction progress; it should not be confused with every event-time watermark policy used in stream processing.
A cursor is only as reliable as its change coverage
A simple “greater than the last timestamp” query can miss changes if the timestamp is not updated, values are null, several records share a boundary or a record becomes visible after the cursor moves past it. The exact risk depends on the source's transaction and timestamp behaviour.
Define lower and upper boundaries, tie handling and any controlled overlap or reconciliation. Advancing the cursor before output is safely handled can skip data after failure. Replaying an overlap requires an output strategy that can correctly handle repeated records.
Deletions need an explicit mechanism
A row that has been physically deleted cannot be found by scanning surviving rows for newer modification values. Change data capture, or CDC, can expose recorded inserts, updates and deletes when the source and connector support them. Other designs use deletion markers or compare supported snapshots.
Microsoft's incremental-copy guidance gives a concrete example: its watermark approach handles eligible inserts and updates, while supported CDC can include deletes. Do not infer identical capabilities from every product labelled incremental.
A consistent extract has a defined scope
Database isolation can help within its supported boundary. PostgreSQL 18 Repeatable Read, for example, lets successive queries in the same transaction use a consistent snapshot. That is not an automatic, coordinated snapshot across unrelated APIs, databases and files.
Record what the extracted data represents: source version, snapshot or change position, time range, included entities and known exclusions. That makes a later discrepancy investigable rather than merely visible as a changed row count.
Transformation rules that deserve explicit tests
Common useful transformations include:
Converting units and types without losing the original meaning or required precision.
Checking required identifiers and separating invalid records with a reason.
Comparing canonical records to identify duplicates under a defined key.
Joining records to an appropriate reference version and checking unmatched results.
Aggregating only values that can legitimately be combined.
A duplicate key with identical canonical content is different from the same key carrying conflicting content. Silently keeping the first or last record can hide a correction, clock error or identity problem. Define whether a conflict stops the run, is quarantined or follows a supported version rule.
Joins also change row counts. A supposedly one-to-one reference lookup can multiply records if the reference key is not unique. A filter can remove valid-looking input intentionally, while a missing join match can remove it accidentally. Measure those outcomes separately.
Treat schema changes as contract changes. A column can retain the same name while changing units, timezone, allowed values or meaning. Successful parsing is not proof that the old transformation remains valid.
Worked example: ten input rows do not mean ten new rows
Techie Broadband experiment: we executed a small ETL process using Python 3.12.14 and an in-memory SQLite 3.53.1 database. The inputs below are synthetic, not real broadband measurements or an ISP performance test.
The contract accepts only non-negative numeric rates labelled bps or Mbps, with a whole-number result in bits per second. It uses exact decimal arithmetic and a single source with stable measurement IDs. Deduplication compares the ID and normalised content before loading.
Source row | Measurement ID | Input rate | Transformation outcome |
|---|---|---|---|
1 | A | 10 Mbps | Accept as 10,000,000 bps |
2 | B | 20,000,000 bps | Accept as 20,000,000 bps |
3 | A | 10 Mbps | Identical duplicate of A |
4 | C | 30 Mbps | Accept as 30,000,000 bps |
5 | D | 40,000,000 bps | Accept as 40,000,000 bps |
6 | E | 50 Mbps | Accept as 50,000,000 bps |
7 | B | 20 Mbps | Duplicate of B after normalisation |
8 | F | 60,000,000 bps | Accept as 60,000,000 bps |
9 | G | fast Mbps | Reject: invalid numeric value |
10 | H | 80 MBps | Reject: unit is outside this input contract |
The uppercase B in MBps is not silently treated as a lowercase b. A byte-rate unit could be valid in another contract, but this one only accepts bps and Mbps. Rejecting an unsupported representation is safer than guessing what the producer intended.
The row reconciliation is 10 extracted equals 6 accepted unique candidates plus 2 duplicates plus 2 rejected rows. Row 7 demonstrates why deduplication after normalisation can identify equivalent content expressed in different units.
Separate load candidates from inserted rows
The target initially contains A and B with older values of 1,000,000 and 2,000,000 bps. The six accepted candidates are loaded by measurement ID, updating a value only when it differs. The measured outcomes are:
Check | First completed load | Identical rerun |
|---|---|---|
Accepted unique load candidates | 6 | 6 |
Newly inserted rows | 4 | 0 |
Existing rows whose values change | 2 | 0 |
Total target rows after completion | 6 | 6 |
The target grows from two rows to six, a net increase of four. Reporting six inserts would be wrong, even though all six candidates were handled. Reporting ten loaded rows would also mix source rows with destination outcomes.
The tested SQLite load statement was:
INSERT INTO measurements(event_id,rate_bps) VALUES (?,?)ON CONFLICT(event_id) DO UPDATE SET rate_bps=excluded.rate_bpsWHERE measurements.rate_bps<>excluded.rate_bps
This statement uses a primary key and skips an unchanged value. SQLite's UPSERT documentation explains that conflict handling and the conditional update. The syntax is not a universal recipe for every database, and this key represents one logical measurement, not simply the device that produced it.
Test failure as well as a clean rerun
We separately injected a failure after the third load statement and explicitly rolled back the transaction. The original two target rows and their values were restored. A conflicting duplicate with a different value for A was also detected before loading.
Checks compared all expected keys and normalised values, not only the count of six. The frozen source input remained unchanged. These tests establish the behaviour of this small, single-connection example; they do not demonstrate distributed exactly-once delivery, concurrent-writer safety, network recovery or disk durability after an operating-system crash.
Loading modes, history and publication
Appending suits a supported log of distinct records, but a retry can duplicate data if identity and constraints do not prevent it. An upsert matches a key to insert or update. A partition replacement rebuilds a defined slice. A complete replacement rebuilds the chosen dataset, with its own resource and publication requirements.
Decide whether the destination represents current state or historical versions. Overwriting a changed value can be correct for a current-state view and wrong for an audit history. A history-preserving design needs version identity and validity rules, not just an additional timestamp column.
Publish only after the necessary checks. A supported database transaction, versioned output or controlled switch can help readers avoid a mixture of old and new results. Multiple external destinations do not automatically share one atomic commit, so a multi-system load needs an explicit partial-failure strategy.
Retries, checkpoints and backfills
A progress marker answers what input the system considers processed. It does not necessarily establish what every destination contains. AWS Glue, for example, documents that rewinding or resetting a job bookmark does not clean target files. Input progress and destination management are separate responsibilities.
Use stable run scope and record identities when repeating work. Apache Airflow's task guidance recommends specific input partitions and repeatable outcomes. A partition label alone does not freeze files that another process can still change, so retain versions or an appropriate snapshot where required.
Do not retry every failure indefinitely. A temporary connection problem may recover; an unsupported schema or conflicting identity usually needs a decision. Keep rejected records and their reasons available for an authorised correction without allowing them to disappear from reconciliation.
A backfill reprocesses historical scope, perhaps after a corrected mapping. Record whether it should reproduce the old answer or publish a corrected one. Keep the current workload's capacity and consumer expectations in view when a large historical rerun starts.
What affects ETL performance on a UK connection?
If a home lab or small office sends source data to remote processing, upload speed can constrain extraction or staging. A fast download headline does not describe that upstream path. Local disk reads, encryption, WiFi, remote storage and competing traffic can also limit useful transfer progress.
API extraction can be constrained by pagination, request costs and API rate limits. More parallel requests may increase throttling or source load without reducing completion time. Follow the API's supported paging, consistency and retry rules.
Measure the whole path: waiting for inputs, extracting, transferring, transforming, writing, checking and publishing. If stages overlap, evaluate the dependency path rather than adding durations that happen concurrently. If they run serially, a fast transformation cannot compensate for a slow upload or load.
Reduce unnecessary movement only where the meaning and recovery requirements permit it. Selecting required columns or performing a supported filter near the source can help, but discarded detail may be unavailable for a later correction. ETL versus ELT is partly a placement decision about that work.
How to diagnose an ETL problem
A job's successful exit code is evidence that its programmed checks passed. It is not an independent check that the intended data is complete, correct and visible to the consumer.
Observation | What to investigate | Useful evidence |
|---|---|---|
Records disappear across runs | Cursor boundaries, late visibility, source filters or deletions | Source positions, run scope and row-outcome reconciliation |
Target totals grow after a retry | Append behaviour, incorrect keys or repeated side effects | Stable identities, destination constraints and committed outputs |
A join unexpectedly increases rows | Non-unique reference keys or a many-to-many relationship | Key cardinality and per-stage counts |
Rates look plausible but are wrong | Units, numeric parsing or changed source meaning | Original value, unit and transformation version |
More workers do not improve throughput | Source, shared storage, API or destination bottleneck | Stage timings, throttling, locks and resource use |
Load succeeds but reports stay stale | Publication, downstream refresh or the wrong output version | Consumer query path and the version actually read |
Useful records to keep for each run include:
Source scope, positions or file versions, plus the logical run and attempt identifiers.
Transformation and reference-data versions, mappings and expected constraints.
Counts for accepted, duplicate, rejected, filtered, unmatched, inserted, updated and deleted records where relevant.
Validation outcomes, destination versions, timings and the result visible to the consumer.
Those categories must fit the transformation. A join or aggregation is not necessarily a one-input-row-to-one-output-row operation, so do not apply the example's row equation blindly to every pipeline.
Security, data quality and operating costs
ETL can multiply data copies across extracts, staging, rejected-record stores, logs and destinations. Restrict identities and permissions at each boundary, protect credentials through supported mechanisms and avoid writing sensitive payloads into ordinary diagnostic logs.
ETL can remove or minimise selected fields before the chosen target load, but that does not remove the need to protect earlier raw copies. ELT can retain useful source detail, but it also requires deliberate raw-data access and retention rules. Neither approach is inherently compliant or secure just because of its acronym.
Use data integrity checks for identities, relationships and intended values as well as transport and storage checks. A checksum can help detect changed file contents, but it cannot decide whether a unit conversion or join was appropriate.
Operating costs include source impact, network transfer, transformation compute, temporary storage, destination work, monitoring and reruns. A small scripted load may be sufficient for a modest controlled dataset. More complex dependencies, concurrent workloads and recovery requirements may justify orchestration and stronger metadata controls.
How to validate an ETL process
Start with the dataset the consumer needs and the conditions under which it can be published. Test using a controlled, representative input and destination before relying on the process.
Define source scope, record identity, schema, units, time boundaries and the intended destination meaning.
Prepare known examples covering valid records, nulls, duplicates, conflicts, updates and deletions where supported.
Verify transformation results and account for each relevant row outcome without assuming unchanged row counts.
Load into a controlled target, compare expected keys and values, then rerun the same logical input.
Inject a suitable failure around writes and progress recording, checking rollback or the documented recovery path.
Verify publication through the consumer's actual query, then retain run evidence and a correction procedure.
The Techie Broadband terminology guide connects the networking, storage and reliability concepts involved. Keep transfer success, transformation correctness and consumer-visible publication separate when assessing what a test has proved.
Key takeaway
ETL turns source data into a prepared destination dataset through extraction, transformation and loading. Trust comes from defining the boundaries and checking the outcomes: which source state was read, which rules were applied, what happened to rejected or repeated records, and what the destination now contains. Count meaningful outcomes and verify values, rather than treating a green job status as the result.
Frequently asked questions
What does ETL stand for?
ETL stands for extract, transform and load. It describes reading source data, preparing it according to defined rules and loading the prepared result into a chosen destination.
What is the difference between ETL and ELT?
ETL performs the main target-ready transformation before loading into the chosen destination. ELT loads into the target environment first and performs substantial transformation there. The distinction does not by itself determine speed, cost or data quality.
Does ETL have to run overnight?
No. ETL can use scheduled batches, on-demand jobs or continuing change processing. The acronym describes the integration stages rather than a mandatory schedule or completion latency.
Does incremental ETL capture deleted records?
Only if its change-detection mechanism supports them. A cursor over surviving rows cannot identify a physically deleted row by itself. Supported CDC, deletion markers or snapshot comparison may provide the required information.
Why are fewer rows inserted than extracted?
Some source rows may be rejected, filtered, deduplicated, joined or aggregated, while some accepted records update existing destination rows. Reconcile the relevant outcomes and verify identities and values rather than assuming every input becomes a new row.
Is an ETL job safe to rerun?
Only when its input scope, transformation versions, record identities and output handling support a correct repeated attempt. Test the destination and any external effects around partial failure; a progress marker or upsert alone is not a complete guarantee.

