---
title: Choose an ETL approach on Databricks
description: Compare ETL approaches on Databricks, including Lakeflow pipelines, dbt, Spark notebooks and jobs, and stored procedures.
canonical_url: https://docs.databricks.com/gcp/en/data-engineering/choose-etl-approach
---

# Choose an ETL approach on Databricks

Databricks supports several ways to build extract, transform, and load (ETL) pipelines. Databricks recommends Lakeflow pipelines, built on Apache Spark™ Declarative Pipelines (SDP), for most ETL workloads. If you already use dbt or Spark, those approaches work on Databricks too.

## <a id="approaches" />Available approaches

Each approach differs in how you define transformations and who manages dependencies, incremental processing, and orchestration. For background on the declarative and procedural models behind these approaches, see [Procedural vs. declarative data processing in Databricks](https://docs.databricks.com/gcp/en/data-engineering/procedural-vs-declarative.md).

| Approach                 | What it does                                                                                                                         | When to use it                                                           | Key constructs                                                           | Getting started                                                                                                            |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------- |
| Lakeflow pipelines (SDP) | You declare the tables and transformations, and the pipeline engine manages dependencies, incremental processing, and orchestration. | New batch and incremental ETL workloads.                                 | streaming tables, materialized views, flows, `AUTO CDC`, `REPLACE WHERE` | [Lakeflow pipelines](https://docs.databricks.com/gcp/en/ldp/index.md)                                                      |
| dbt on Databricks        | Runs your existing dbt models on Databricks compute.                                                                                 | Your team already maintains a dbt project.                               | dbt models, dbt tasks in Lakeflow Jobs                                   | [Tutorial: Create, run, and test dbt models locally](https://docs.databricks.com/gcp/en/integrations/dbt-core-tutorial.md) |
| Spark notebooks and jobs | Runs Spark code that you write in notebooks or scripts and orchestrate with Lakeflow Jobs.                                           | Complex transformation logic that you want to express directly in Spark. | Spark DataFrames, notebooks, Lakeflow Jobs                               | [Lakeflow Jobs](https://docs.databricks.com/gcp/en/jobs/index.md)                                                          |
| Stored procedures        | Encapsulates procedural SQL logic that runs on a SQL warehouse.                                                                      | Procedural SQL that you want to package and reuse.                       | `CREATE PROCEDURE`, SQL scripting                                        | [CREATE PROCEDURE](https://docs.databricks.com/gcp/en/sql/language-manual/sql-ref-syntax-ddl-create-procedure.md)          |

## <a id="next-steps" />Additional resources

* [Lakeflow pipelines](https://docs.databricks.com/gcp/en/ldp/index.md)
* [Procedural vs. declarative data processing in Databricks](https://docs.databricks.com/gcp/en/data-engineering/procedural-vs-declarative.md)
* [When to use REPLACE WHERE vs. materialized views](https://docs.databricks.com/gcp/en/sql/mv-st/replace-where-vs-materialized-views.md)
* [Data engineering with Databricks](https://docs.databricks.com/gcp/en/data-engineering/index.md)
* [Data engineering best practices](https://docs.databricks.com/gcp/en/data-engineering/best-practices.md)
