Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 36

ETL vs. ELT: Choosing the Right Approach

This lesson is built with resources from youtube.com, medium.com and 1 more site.

Hello! Welcome back to our course on practical data architecture.

In our last lesson, you successfully set up your Databricks workspace, created a compute cluster, and ran your first commands. Your data engineering workshop is now open for business. Before we start building, we need a blueprint. Today, we'll explore the two primary architectural blueprints for data pipelines: ETL (Extract, Transform, Load) and ELT (Extract, Load, Transform).

Your goal for this lesson is to compare these two approaches and learn how to identify when to use each. As an architect, you're used to evaluating patterns based on trade-offs like cost, scalability, and maintainability. We'll apply that same thinking to these foundational data patterns. This conceptual understanding is crucial, as it will inform the design of the practical pipelines we'll build in Databricks starting in the next lesson.

1. The Core Patterns: ETL and ELT

At a high level, both ETL and ELT are processes for moving data from various source systems (like databases, APIs, or files) to a central destination, usually a data warehouse or a lakehouse, for analysis. The key difference lies in the sequence of operations.

The diagram below gives a clear visual distinction between the two workflows.

ETL vs. ELT Data Processing Flow
This flowchart illustrates the fundamental difference between ETL and ELT. In ETL, transformation happens in a separate staging area before the data is loaded into the warehouse. In ELT, raw data is loaded directly into the warehouse, and transformations happen within it.

Let's dive into what this means in practice. To start, watch this short video for a concise overview of both approaches.

ETL vs ELT | Modern Data Architectures

This video from Kahan Data Solutions provides a quick and clear introduction to the concepts of ETL and ELT, explaining the flow and highlighting the main differences.

Watch the sections explaining ETL (0:31 - 1:41) and ELT (1:41 - 3:14). Pay attention to where the transformation happens and the role of the staging layer in each process.


2. ETL (Extract, Transform, Load): The Traditional Approach

As you just saw, ETL is the classic model for data integration.

  1. Extract: Data is pulled from one or more source systems.
  2. Transform: The extracted data is moved to a temporary staging area or an external processing engine (like Apache Spark or a dedicated ETL tool). Here, it is cleansed, standardized, enriched, and reshaped into the desired format. This is where business logic is applied.
  3. Load: The fully transformed, analysis-ready data is loaded into the target data warehouse.

Why was it done this way?
Historically, data warehouses were built on-premise with expensive and tightly coupled storage and compute. Running complex transformations directly on the data warehouse was risky and could slow down critical reporting queries. It was more efficient to offload the heavy lifting of transformation to a separate, specialized server before loading the clean data.

Key Characteristics of ETL:

  • Pre-defined Structure: You must know exactly how you want to use the data before you load it, as the transformation logic is fixed upfront.
  • Compliance-Friendly: It's well-suited for handling sensitive data (like Personally Identifiable Information - PII), as you can mask, encrypt, or remove it during the transformation step before it ever lands in the main data repository.
  • Mature Tooling: The ETL market is dominated by established, often GUI-driven enterprise tools like Informatica PowerCenter and Microsoft SSIS.

3. ELT (Extract, Load, Transform): The Modern Approach

ELT flips the last two steps, a change made possible by the architecture of modern cloud platforms.

  1. Extract: Data is pulled from the source systems.
  2. Load: The raw, untransformed data is loaded directly into a central repository, typically a cloud data warehouse (like Snowflake or BigQuery) or a data lakehouse (like Databricks).
  3. Transform: The data is transformed as needed inside the target system, leveraging its powerful and scalable compute engine. Analysts can run SQL or other code to model the raw data into various analysis-ready formats.

Why the shift to ELT?
The rise of the cloud brought two game-changers:

  1. Cheap, scalable storage: Cloud object stores (like Amazon S3 or Azure Data Lake Storage) can hold vast amounts of raw data at a low cost.
  2. Elastic, powerful compute: Modern cloud data warehouses and lakehouses separate storage from compute, allowing them to scale their processing power up or down on demand. It's now economically feasible to load all the raw data first and then apply the immense power of the cloud platform to transform it.

Key Characteristics of ELT:

  • Flexibility and Agility: Since all the raw data is available in the warehouse, you can support new questions and analyses by simply writing new transformation models. You don't have to go back and change the ingestion pipeline.
  • Fast Ingestion: The time-to-availability for raw data is much shorter because the time-consuming transformation step happens later.
  • Leverages Cloud Power: It takes full advantage of the scalability and performance of modern data platforms.

4. A Detailed Architectural Comparison

Now that you understand the basic flows, let's analyze the trade-offs from an architect's perspective. The following reading from Databricks provides an excellent deep dive into the differences across several key areas.

ETL vs ELT: Dive Deeper into Two Data Processing ...

This article, 'ETL vs. ELT' from Databricks, offers a detailed comparison that will help you think through the architectural implications of each choice.

Please read the section titled 'How the differences can affect data processing'. As you read, focus on how each point (Availability, Flexibility, Scalability, Speed, Compliance, etc.) would influence your decision when designing a data platform.

To summarize and reinforce that reading, here's a table comparing the two approaches on key architectural dimensions.

ETL vs. ELT Comparison Table
This table provides a side-by-side comparison of ETL and ELT across several critical features, including performance, scalability, and complexity.
Test your understanding!

A financial services company needs to build a new analytics platform. A key requirement is that all customer PII must be anonymized before it is made available to business analysts. The company processes a predictable volume of data from several well-structured internal databases.

Which pattern, ETL or ELT, would you recommend for the core ingestion pipeline, and why?

Show answer

ETL would be the more suitable choice here.

The primary reason is the strict compliance requirement to anonymize PII. With an ETL process, you can perform this sensitive transformation in a controlled staging environment before the data is loaded into the main analytics data warehouse. This ensures that raw PII never lands in the target system accessible by analysts, significantly simplifying data governance and reducing compliance risk. The predictable data volume and structure also fit well with the more rigid, pre-defined nature of ETL pipelines.


5. Conclusion: Making the Right Choice

As we've seen, neither ETL nor ELT is universally "better." The choice is a strategic architectural decision that depends on your specific context.

Key Takeaways:

  • ETL (Extract, Transform, Load): Transforms data before loading. It is a mature pattern that offers strong control over data before it enters your warehouse, making it ideal for compliance-heavy scenarios and legacy systems.
  • ELT (Extract, Load, Transform): Loads raw data first and transforms it inside the target system. This modern, cloud-native pattern offers superior flexibility, scalability, and speed of ingestion, making it the default choice for most modern analytics platforms.
  • The Deciding Factor is Context: Your choice will be driven by your infrastructure (cloud vs. on-premise), data volume and variety, compliance needs, and the need for analytical flexibility.

For the remainder of this course, we will be focusing on the ELT pattern. It aligns perfectly with the Databricks Lakehouse architecture, which leverages cloud storage and the powerful Spark engine for in-place transformations.

In our next lesson, you will put this knowledge into action. We will begin building our first pipeline by implementing the "Extract" and "Load" steps of ELT: ingesting raw data into a bronze Delta table.