the pattern · explained without the product
What is metadata-driven orchestration?
Metadata-driven orchestration is a way of running data pipelines where the run plan lives in tables instead of inside the pipelines. What runs, in what order, with which parameters, and what happens on failure are rows in a database. A generic engine reads those rows at run time, and writes what happened back to the same database.
Adding a source is an INSERT and changing the order is an UPDATE; the pipelines themselves aren't redeployed. Microsoft documents the ingestion half of the pattern for Azure Data Factory, and its own BI team runs an orchestration framework built on configuration tables that hold pipeline dependencies. This page covers the whole pattern on Azure: what goes in the tables, how a run works, the limits that shape it, when it pays off, and the options for building or buying it.
A disclosure: ETLMaestro sells an orchestration layer built on this pattern. It appears below as one option among several, labeled as ours.
- The run plan (what runs, in what order, with which values, and how often to retry) is data, so changing it doesn't need a deploy.
- An engine reads the plan and writes a record of every run and every attempt. The record is what lets a retry rerun only the failed steps.
- In both Azure Data Factory and Fabric pipelines, a Lookup returns at most 5,000 rows, a ForEach runs at most 50 iterations at once, and a pipeline holds at most 120 activities.
- It pays off when dozens or hundreds of steps depend on each other. For a few independent loads, scheduled pipelines are enough.
How does metadata-driven orchestration work?
An engine runs a loop. It reads the rows that are eligible to run, launches them up to a parallel limit, records every state change, and moves to the next phase when the current one finishes. When a step fails, the run stops at that phase. A retry launches only the failed steps, because the record shows which ones already succeeded.
The engine can be a set of generic pipelines (a Lookup reads the rows, a ForEach launches them, stored procedures log each step), a notebook, an Azure Function, or a product. What makes it metadata-driven is that it holds no knowledge of your estate. Empty the tables and it has nothing to do; add a row and the next run picks it up.
Rerunning only what failed works when each step can run twice without harm. A copy that overwrites a partition, or merges on a key, can be rerun safely. One that appends rows without a watermark can load the same rows twice. Since the pattern makes reruns cheap, make every step safe to rerun before you rely on them.
What goes in the metadata?
Two kinds of rows. The plan is what people edit: what runs, how it runs, in what order, and when, with retry and timeout settings. The record is what the engine writes: one row per run and one per attempt of each step, with status and error. The plan alone can start work. You need both to retry precisely and to report truthfully.
| Rows for | What they hold | What they replace |
|---|---|---|
| What runs | Source, target, parameters, an on/off flag | A pipeline per source |
| How it runs | The pipeline, notebook, or procedure to call, and its connection | Copied variants of the same pipeline |
| In what order | Phase, what each step waits for, how many run at once | Arrows on a canvas and Execute Pipeline chains |
| When | Start time, retries, wait between retries, timeout | Triggers configured one at a time |
| What happened | Each run and each attempt: start, end, status, error | The monitor's run history, which Azure Data Factory keeps for 45 days |
Microsoft's own BI team describes the same split in its guidance on BI solution architecture. Its orchestration framework "uses a data-driven design that depends on a set of configuration tables," which "store metadata describing pipeline dependencies and how to map source data to target data structures," and its ingestion runs with "comprehensive logging" for troubleshooting, performance monitoring, and alerts. Microsoft says the investment "has since paid for itself; there's no longer a requirement to hard-code each data movement."
How is it different from canvas pipelines and code-first DAGs?
The difference is where the run plan lives and what it takes to change it. Canvas-first tools keep it in pipeline definitions you edit and publish. Code-first schedulers keep it in Python files you commit and deploy. Metadata-first keeps it in rows a running engine reads, so a change is a data change, reviewed and audited like one.
| Canvas-first (ADF, Fabric pipelines) | Code-first (Airflow, Dagster, Prefect) | Metadata-first | |
|---|---|---|---|
| Run plan lives in | Pipeline definitions in the factory or workspace | Python files deployed to the scheduler | Rows in a database the engine reads |
| Adding a source | Copy or edit a pipeline, then publish | Write or generate a task, review, deploy | Insert a row |
| Changing the order | Redraw dependencies or Execute Pipeline chains | Edit dependencies in code, deploy | Update a phase or dependency value |
| After a failure | Rerun from the failed activity, one run at a time | Task retries are built in; clear a failed task to rerun it | Retry the failed steps, if the engine records attempts |
| Who can see what ran | People with access to the factory or workspace monitor | People with access to the scheduler's UI | Anyone who can query the record or read a report on it |
| Skills to change it | The designer and its expression language | Python, git, and running the scheduler | SQL and the framework's conventions |
| Where it strains | Hundreds of near-identical pipelines, and master pipelines | A scheduler to host and upgrade, while Azure work still runs in ADF or Fabric | The framework itself, which someone has to own, test, and document |
Many Azure estates mix all three. The work stays in ADF pipelines, Fabric notebooks, and stored procedures, and what changes is where the coordination lives. The cost of keeping it on the canvas is covered in the master pipeline problem, and the code-first route in master pipeline vs Airflow DAG and Airflow vs Azure Data Factory.
Metadata-driven, config-driven, or parameterized: what's the difference?
They answer different questions. Parameterized describes one pipeline taking values at run time. Config-driven means the plan sits in files, often YAML, that ship with the code. Metadata-driven means the plan is data an engine reads while it runs, so changing it doesn't need a deploy. Metadata management, despite the name, is a different subject.
| Term | Where the plan lives | What a change takes | Example |
|---|---|---|---|
| Parameterized pipeline | The trigger or caller that passes the values | Editing that trigger or calling pipeline | One copy pipeline with source and target parameters |
| Config-driven | Files such as YAML or JSON, deployed with the code | A commit and a deploy | dag-factory building Airflow DAGs from YAML |
| Metadata-driven | Rows in a database, read at run time | An insert or update, with no deploy | A control table read by Lookup and ForEach; an engine reading phases and dependencies |
| Metadata management | Nowhere: it catalogs your data instead of running it | Not applicable | Data catalogs and lineage tools |
The lines blur. Microsoft's own Data Factory documentation calls designing metadata-driven pipelines "a common use case for parameters," and a metadata-driven engine passes each row to a parameterized pipeline. The test that separates them is practical: if changing what runs tonight needs a deploy, the plan lives in code or config, however it was generated.
Which platform limits shape a metadata-driven design on Azure?
The same few, in Azure Data Factory and in Fabric pipelines. A Lookup returns at most 5,000 rows and 4 MB, a ForEach runs at most 50 iterations at once, and a pipeline holds at most 120 activities. Past those numbers, designs split into parent and child pipelines, which is why generated frameworks come in levels. The published limits for both platforms, with the usual fix for each, are in ADF and Fabric pipeline limits.
Two differences between the platforms matter more in Fabric than they look. An engine that logs every step with a stored procedure activity spends its concurrency on bookkeeping, and Fabric allows 100 external activities at once per workspace, where ADF allows 3,000 per subscription in a region on the Azure integration runtime. And Fabric's limits page caps an activity run at 24 hours (its activity settings page says 7 days), so an engine that waits inside one long activity should be shaped to finish inside a day there. In ADF, a ForEach also can't contain another ForEach; the documented workaround is a child pipeline, the same split the Lookup limit forces. Our guide to metadata-driven ETL in Azure Data Factory works through those designs in detail.
When does metadata-driven orchestration pay off?
When you run many units of work and the order between them matters. A handful of independent loads doesn't need it, and many independent loads need metadata-driven ingestion rather than orchestration. The pattern pays off when dozens or hundreds of steps depend on each other, a late failure costs hours of reruns, or someone outside engineering needs to know whether the data is fresh.
Signs an estate has outgrown the canvas:
- Adding a source means copying a pipeline and editing the copy.
- A failure late in the night means rerunning work that already succeeded.
- Only one or two people can say what runs after what.
- The same patterns run in dev, test, and prod, with values that drift apart.
- The question "is the data fresh?" needs an engineer to answer.
When is metadata-driven orchestration the wrong choice?
When the estate is small or nobody will own the framework. Metadata adds a layer: someone has to design the tables, validate the rows, and keep the engine running. A dozen pipelines that rarely change, or steps that are each one-off logic, are simpler on a canvas or in a short DAG. And a framework that only one person understands brings back the master pipeline problem, with a database in place of a canvas.
- Business logic stays in notebooks, SQL, or pipelines, and the metadata says when to run it and with which values. SQL fragments stored in rows slip out of reach of code review and tests.
- A bad row breaks a run the way a bad deploy does, so constraints, an audit trail, and promotion from dev to prod belong in the design from the start.
- The generic pipeline in the monitor doesn't say which source it just ran. Without the record, debugging gets harder than it was before, so build the record first.
How do you build metadata-driven orchestration on Azure?
Microsoft's built-in tools cover ingestion: ADF's metadata-driven copy task generates control tables and pipelines, and Fabric's Copy job tracks many tables and their watermarks without a control table. Orchestration across pipelines, notebooks, and procedures is a framework you build, adopt from open source, or buy. Each route leaves a different part with you.
| Option | What it covers | Runs on | What stays with you |
|---|---|---|---|
| Metadata-driven copy task Microsoft, built into ADF | Copy at scale: three levels of generated pipelines, control tables, and a procedure that stores watermarks | ADF, Synapse | Order across pipelines, transformations, and run reporting |
| Copy job Microsoft, built into Fabric | Bulk, incremental, and CDC copy of many tables, with the last successful run tracked for you | Fabric | Everything after the copy: notebooks, dependencies, phases |
| Your own framework built in-house | Whatever you design: control tables, an engine pipeline or notebook, logging procedures | ADF, Fabric | All of it, including the people who understand it |
| procfwk open source, MIT | Batches, stages, and parallel worker pipelines from SQL metadata | ADF, Synapse | Upkeep: its README says it gets no development after December 2023, and points to CF.Cumulus |
| CF.Cumulus Community Edition source-available, Cloud Formations | A metadata-driven lakehouse accelerator with orchestration pipelines, generated from procfwk | ADF with Databricks and Azure SQL; Cloud Formations' product page also lists Fabric and Synapse | Adoption and upkeep, unless you buy a supported edition |
| FMD Framework open source, MIT | A community-driven, metadata-driven accelerator for Fabric, built on Fabric SQL Database | Fabric | Adoption and upkeep |
| Fabric Accelerator and ELT Framework open source, GPL-2.0 | Reusable Fabric platform components with metadata-driven orchestration from the ELT Framework | Fabric | Adoption and upkeep |
| dag-factory open source, Apache-2.0 | Airflow DAGs built declaratively from YAML files | Apache Airflow | Running Airflow; changes still ship as files |
| ETLMaestro ours, commercial | An orchestration layer that runs your existing ADF pipelines, Fabric notebooks and pipelines, stored procedures, and Logic Apps from metadata you enter once, with checkpointed phases, retries that rerun only failures, and a Power BI status report | ADF, Fabric | Your pipelines and notebooks; ETLMaestro doesn't move data |
Whichever route you take, judge it on the record half as much as the plan half. A framework that can launch work but can't say what ran, what failed, and what a retry will skip still leaves the hard part to a person. The build route is walked through in metadata-driven ETL in Azure Data Factory, the Fabric side in Fabric Data Factory vs Azure Data Factory, and ETLMaestro's own tables in how ETLMaestro works.
Questions teams ask about metadata-driven orchestration
Is metadata-driven orchestration the same as metadata-driven ETL?
They share a mechanism but cover different ground. Metadata-driven ETL, or ingestion, puts the list of things to copy in a control table that a Lookup and a ForEach read. Metadata-driven orchestration also puts the order, the dependencies, the retries, and the run history in tables, across pipelines, notebooks, and stored procedures. Most teams start with ingestion and add orchestration when the order between steps starts to matter.
Does metadata-driven orchestration replace our pipelines and notebooks?
No. The pipelines and notebooks keep doing the work. What moves into tables is the decision about what runs, when, in what order, and with which values. A generic pipeline or notebook receives those values as parameters, so one well-built pipeline can serve hundreds of rows, and logic that is unique to one table stays in its own notebook or procedure.
Where should orchestration metadata live?
In a transactional database the engine can write to row by row, usually Azure SQL Database or a SQL database in Fabric. The plan changes rarely, but the record takes a write for every state change of every step. A SQL database in Fabric draws on your Fabric capacity, while Azure SQL Database is billed on its own, which matters if capacity is already tight.
Can Apache Airflow be metadata-driven?
Partly. Airflow can generate DAGs from configuration files, and libraries such as dag-factory build them from YAML. Airflow's documentation recommends exporting that metadata to files in the DAG folder, and warns that reading Airflow Variables in top-level DAG code opens a connection to Airflow's metadata database. So a change usually ships as a file and a deploy, which is closer to config-driven than to metadata-driven as this page uses the term.
Does metadata-driven orchestration cost more to run?
Rarely by much. An engine built from pipeline activities pays for its own bookkeeping, because each launching or logging activity is a billed activity run. Wrap 500 nightly steps in three non-copy activities each and you get about 45,000 activity runs a month: about $45 on Azure Data Factory, or 252 CU-hours, about $45, in Fabric at pay-as-you-go list rates. The larger cost is the engineering time to build and keep the framework.
How do you test a change to orchestration metadata?
Treat rows like code. Keep the plan in source control or behind an audited change process, let constraints and foreign keys reject bad rows before the engine reads them, and promote changes from dev to test to prod the same way you promote pipelines. A dry run that resolves the next schedule without executing it catches missing rows and broken dependencies before they reach production.
Should we write one notebook per table or one generic notebook?
One generic notebook per pattern, with the table-specific values in metadata, when the work really is the same: copying, merging into a dimension, applying the same cleanup rules. Keep separate notebooks for logic that belongs to one table only. The metadata then decides which notebook runs for which table, in what order, and with which values.
Sources and verification
Written by the ETLMaestro team, who build orchestration on this pattern. Platform limits and prices were checked against Microsoft Learn on 2026-10-10, and each open-source project against its own repository the same day. CF.Cumulus was checked again on 2026-11-11: the repository holds its Community Edition, under the CF.Cumulus Source-Available License v1 since May 2026, and Cloud Formations offers supported editions under commercial terms. Prices are list, pay-as-you-go, US regions: $1 per 1,000 ADF activity runs, and 0.0056 CU-hours per non-copy Fabric activity run at $0.18 per CU-hour.
- Microsoft Learn: BI solution architecture in the Center of Excellence (Microsoft's ingestion and orchestration frameworks, configuration tables, logging)
- Microsoft Learn: Build large-scale data copy pipelines with a metadata-driven approach in the Copy Data tool
- Microsoft Learn: Parameters and expressions in Azure Data Factory (metadata-driven pipelines as a use of parameters)
- Microsoft Learn: What is Copy job in Data Factory for Microsoft Fabric?
- Microsoft Learn: Data Factory limitations overview for Fabric (Lookup, ForEach, activities, concurrency, timeout)
- Microsoft Learn: Lookup activity in Fabric (5,000 rows, 4 MB)
- Microsoft Learn: Azure Data Factory limits (activities, parameters, timeout, concurrent activity runs)
- Microsoft Learn: Lookup activity in Azure Data Factory (5,000 rows, 4 MB)
- Microsoft Learn: ForEach activity limitations and workarounds (no nesting, 50 in parallel, 100,000 items)
- Microsoft Learn: Azure Data Factory keeps pipeline run data for 45 days
- Microsoft Learn: Pipelines pricing for Data Factory in Fabric (0.0056 CU-hours per non-copy activity run)
- Microsoft Azure: Data Factory pipeline pricing (orchestration per 1,000 activity runs)
- Microsoft Learn: Fabric operations (SQL database in Fabric consumes capacity units)
- Apache Airflow documentation: Dynamic DAG generation (metadata in files, Variables in top-level code)
- GitHub: procfwk, the metadata-driven processing framework for ADF and Synapse
- GitHub: CF.Cumulus Community Edition by Cloud Formations (README and LICENSE)
- Cloud Formations: CF.Cumulus product page (Fabric, or ADF with Databricks or Synapse)
- GitHub: FMD Framework, the Fabric Metadata-Driven Framework
- GitHub: Fabric Accelerator and the ELT Framework
- GitHub: dag-factory by Astronomer
Spot something out of date? Tell us and we'll fix it.