04. Batch Loading, ETL vs. ELT & Orchestration
Not all data needs to arrive in sub-seconds. 90% of the enterprise world runs on scheduled batch processing—accumulating data over hours or days and processing massive chunks reliably in parallel.
ETL (Old Way) vs. ELT (Modern Cloud Way)
How cloud compute and modern warehouses changed the fundamental sequence of data engineering pipelines.
ETL: Extract → Transform → Load
Data is extracted from source databases, transformed and cleaned on an external middleware server (Informatica, Talend), and only clean data is loaded into the warehouse.
ELT: Extract → Load → Transform
Raw data is extracted and dumped directly into the cloud warehouse or lake first. Transformations are then performed inside the warehouse using SQL tools like dbt!
Idempotency • Backfilling • Data SLAs
The two non-negotiable rules of professional Data Engineering: your pipeline must be safely rerunnable, and historical data must be reprocessable.
Idempotency (Safe to Re-Run)
An idempotent pipeline guarantees that if you run it once, twice, or 100 times for the date 2026-10-10, the final table contains the exact same records with zero duplicate rows.
INSERT OVERWRITE ... WHERE date = '2026-10-10' instead of blind appends.
Backfilling (Time Travel Repairs)
Suppose your team discovers a bug in how tax was calculated over the past 2 years. Backfilling is the automated process of re-running the pipeline over 730 historical daily batches without breaking downstream reports.
airflow dags backfill -s 2024-01-01 -e 2026-10-10 my_dag.
Orchestration & Directed Acyclic Graphs (DAGs)
How tools like Apache Airflow, Prefect, and Dagster ensure that step B runs only after step A succeeds.
Extract → Transform → Load.• Acyclic: No infinite loops! Task C cannot loop back to trigger Task A.
• Graph: A network of dependencies. For example:
Load Warehouse waits until BOTH Ingest Sales and Ingest Inventory finish successfully.
Interactive Airflow DAG Execution Simulator
Click to trigger the daily batch pipeline and watch tasks transition from Queued to Running to Success!