Airflow vs Dagster vs Prefect: picking an orchestrator

Task-centric vs asset-centric orchestration, local development, what each one costs to operate, and which team shape fits Airflow 3, Dagster and Prefect 3.

Pick Airflow if you need the largest ecosystem and the most hiring and hosting options, Dagster if your pipelines exist to produce tables and you want lineage and data checks built into the orchestrator, and Prefect if your workflows are Python programs with branching logic and you want the lightest path from script to schedule. All three are open source under Apache 2.0 and all three can run the same nightly job. The difference is the unit each one schedules. Airflow schedules tasks in a DAG. Dagster declares data assets and works out what must run to keep them fresh. Prefect wraps ordinary Python functions and records what happened as they run. Two events in 2026 changed the comparison: Airflow 2 reached end of life on April 22, 2026, so a new Airflow project today means Airflow 3 (supported versions), and on July 13, 2026 Prefect announced it is acquiring Dagster Labs (Prefect announcement).

What changed in 2026

Most “Airflow vs Dagster vs Prefect” articles still compare Airflow 2. That is now the wrong baseline. Airflow 2.x is marked EOL, which per the project means it “will not get any fixes or support”. The current release line at the time of writing is Airflow 3.3.

Airflow 3.0, released on April 22, 2025, closed several gaps that used to be the standard argument for switching (release post):

  • DAG versioning. A run finishes on the DAG version it started with, and the UI ties each run to its version.
  • Assets. Datasets became Assets, with a decorator syntax for defining them.
  • Backfills in the scheduler. Backfills run inside the scheduler and can be started from the UI or API.
  • Task SDK and a client-server task interface. Tasks talk to an API server instead of the metadata database. Task code “can no longer directly import and use Airflow database sessions or models” (upgrade guide).
  • Event-driven scheduling and a new React UI.

The Dagster news matters for procurement more than for code. Dagster’s own letter to users says “Dagster remains a supported product under its existing name”, the open source project “continues under its existing license”, and existing “deployments, contracts, pricing, and support remain unchanged” (Dagster letter). The combined company is expected to operate under the Prefect name. Dagster and Prefect are still two separate products with two separate programming models, so this comparison still has three entries. What changes is that two of the three now share an owner, which belongs in any long-term vendor risk review.

Task-centric vs asset-centric: the real difference

The cleanest way to see the difference is to write the same pipeline three times: pull orders, aggregate them into daily revenue, and run it every day. We ran each example below against the current release (Airflow 3.3.2, Dagster 1.13.27, Prefect 3.9.0, all on Python 3.14).

Airflow: tasks in a DAG

from datetime import datetime

from airflow.sdk import Asset, dag, task

daily_revenue = Asset("warehouse://analytics/daily_revenue")


@dag(schedule="@daily", start_date=datetime(2026, 1, 1), catchup=False)
def orders_pipeline():
    @task(retries=3)
    def extract_orders() -> list[dict]:
        return [{"day": "2026-10-29", "amount": 120.0}, {"day": "2026-10-29", "amount": 80.0}]

    @task(outlets=[daily_revenue])
    def build_daily_revenue(orders: list[dict]) -> dict:
        totals: dict[str, float] = {}
        for o in orders:
            totals[o["day"]] = totals.get(o["day"], 0.0) + o["amount"]
        return totals

    build_daily_revenue(extract_orders())


orders_pipeline()


@dag(schedule=[daily_revenue], start_date=datetime(2026, 1, 1), catchup=False)
def refresh_dashboards():
    @task
    def notify():
        print("daily_revenue updated, refreshing dashboards")

    notify()


refresh_dashboards()

The unit is the task. The schedule belongs to the DAG, and the data the tasks produce is something you declare on the side (outlets=[daily_revenue]) so another DAG can be triggered by it. Data passed between tasks travels through XCom, which suits small values. Large data should stay in the warehouse or object storage, with the task passing a reference.

Dagster: assets that depend on assets

import dagster as dg


@dg.asset
def raw_orders() -> list[dict]:
    return [{"day": "2026-10-29", "amount": 120.0}, {"day": "2026-10-29", "amount": 80.0}]


@dg.asset
def daily_revenue(raw_orders: list[dict]) -> dict:
    totals: dict[str, float] = {}
    for o in raw_orders:
        totals[o["day"]] = totals.get(o["day"], 0.0) + o["amount"]
    return totals


@dg.asset_check(asset=daily_revenue)
def revenue_not_negative(daily_revenue: dict) -> dg.AssetCheckResult:
    return dg.AssetCheckResult(passed=all(v >= 0 for v in daily_revenue.values()))


daily_job = dg.define_asset_job("daily_revenue_job", selection=[raw_orders, daily_revenue])

defs = dg.Definitions(
    assets=[raw_orders, daily_revenue],
    asset_checks=[revenue_not_negative],
    jobs=[daily_job],
    schedules=[dg.ScheduleDefinition(job=daily_job, cron_schedule="0 6 * * *")],
)

The unit is the asset: “a logical unit of data such as a table, dataset, or machine learning model” (Dagster concepts). Dependencies come from function parameters, so daily_revenue depends on raw_orders because it takes it as an argument. The orchestrator therefore knows which tables exist, what each was built from and when it was last materialized, which is why lineage and freshness come built in rather than bolted on. Asset checks attach data-quality assertions to the asset itself. Dagster’s docs now say ops, its older task-like unit, “have largely been replaced by assets.”

Prefect: decorated Python functions

from prefect import flow, task


@task(retries=3, retry_delay_seconds=10)
def extract_orders() -> list[dict]:
    return [{"day": "2026-10-29", "amount": 120.0}, {"day": "2026-10-29", "amount": 80.0}]


@task
def build_daily_revenue(orders: list[dict]) -> dict:
    totals: dict[str, float] = {}
    for o in orders:
        totals[o["day"]] = totals.get(o["day"], 0.0) + o["amount"]
    return totals


@flow(log_prints=True)
def orders_pipeline(min_rows: int = 1) -> dict:
    orders = extract_orders()
    if len(orders) < min_rows:
        print("not enough rows, skipping")
        return {}
    return build_daily_revenue(orders)


if __name__ == "__main__":
    orders_pipeline.serve(name="daily-orders", cron="0 6 * * *")

The unit is the flow run. A flow is a decorated function, and calling it runs it “just like a normal Python function” (Prefect flows). The if in the middle is ordinary Python: the run’s shape is decided at runtime, not declared up front. That is Prefect’s main advantage for workflows that branch, loop or fan out based on data. It is also why Prefect knows less about your tables than Dagster does: it sees function calls, not datasets.

The three models side by side

Airflow 3DagsterPrefect 3
Unit of workTask inside a DAGAsset (table, file, model)Flow and task (Python functions)
How dependencies are declared>> or TaskFlow return valuesFunction parameters between assetsNormal Python calls
Data awarenessAssets as scheduling triggersAssets are the core model, with lineage and checksResults and caching, no asset graph at the core
Dynamic shapeDynamic task mapping inside a fixed DAGPartitions and dynamic outputsAny Python control flow
Event triggersAsset and external event schedulingSensors and declarative automationEvents and automations (open source since 3.0)
LicenceApache 2.0Apache 2.0Apache 2.0

Local development and testing

This is where teams feel the difference every day.

Prefect has the shortest loop. Calling orders_pipeline() from a script or a REPL executes the flow immediately. In our run, Prefect started a temporary local server on its own, recorded the run and stopped the server on exit. No database setup, no separate process. Unit tests can call the functions directly.

Dagster is close behind. dg.materialize([raw_orders, daily_revenue]) runs the assets in-process, and because an asset is a function, daily_revenue([...]) works as a plain unit test with no orchestrator running. For the full UI, the quickstart scaffolds a project with uvx create-dagster@latest project <name> and starts it with dg dev at http://localhost:3000 (quickstart).

Airflow asks for more. Even a local test needs a metadata database (airflow db migrate creates a SQLite one), and airflow dags test orders_pipeline 2026-10-29 worked once the DAG had been parsed into that database. Calling dag.test() from a plain script in a fresh environment failed for us with “the dag is not serialized” until we ran airflow dags reserialize first. None of this is hard, but it is more ceremony than the other two, and teams typically wrap it in a container setup such as the Astro CLI or the official Docker Compose file.

One local-development note for Airflow 2 holdouts: the upgrade guide uses Ruff’s AIR301 and AIR302 rules to flag code that breaks on Airflow 3, such as the removed execution_date context key and SubDAGs (upgrade guide). Run ruff check dags/ --select AIR301 before estimating the migration.

What it takes to operate each one

Self-hosting cost is mostly about how many moving parts you keep alive.

Airflow 3Dagster OSSPrefect 3 OSS
Always-on servicesScheduler, DAG processor, API server, optional triggerer and workersWebserver, daemon, code location serversPrefect server, plus workers or a serving process
State storePostgreSQL or MySQLSQLite by default, PostgreSQL in productionSQLite by default, PostgreSQL in production
Where runs executeExecutor (local, Celery, Kubernetes, edge)Run launcher (process, container, pod)Work pool: hybrid worker, push to serverless, or managed

Airflow 3 requires a scheduler, a standalone DAG processor, an API server and a metadata database, “usually PostgreSQL or MySQL” (architecture overview). Workers and the triggerer are optional depending on the executor and whether you use deferrable tasks. It is the most components, but also the best-documented operational path: the official Helm chart, a decade of production war stories, and managed services from AWS (MWAA), Google Cloud (Cloud Composer) and Astronomer (Astro).

Dagster runs a webserver for the UI, a daemon that “operates schedules, sensors, and run queuing”, and one server per code location (deployment architecture). The daemon does not support multiple replicas. Code locations are a real strength for larger teams: each team’s code runs in its own environment, so one team’s dependency upgrade does not break another’s pipelines.

Prefect splits orchestration from execution. The simplest production setup is flow.serve(), a long-running process that creates a deployment and executes its scheduled runs; the process must stay alive, and by default stopping it pauses the schedule (schedules docs). It also needs a real backend: when we ran serve() against the temporary local server, Prefect 3.9 warned that it “cannot schedule flows on an ephemeral server” and asked for prefect server start, so production means a Prefect server with a PostgreSQL database, or Prefect Cloud. For heavier setups, work pools are “a bridge between the Prefect orchestration layer and the infrastructure where flows are run” (work pools). Hybrid pools need a worker you run, while push and managed pools need none.

Managed pricing shapes

If you would rather not run the control plane, all three have a commercial option, and the pricing units differ. These are list prices as of October 2026; check the linked pages before quoting internally.

  • Astro (managed Airflow) is usage-based: deployments are billed per hour by size and run continuously, and workers scale to zero when idle. Developer plan deployments start at $0.35 per hour (Astronomer pricing).
  • Dagster+ has Solo ($10 a month, one user), Starter ($100 a month, up to three users) and Pro (contact sales) plans. Usage is billed in credits, where a credit is “the sum of asset materializations and ops executed” (Dagster pricing).
  • Prefect Cloud has a free Hobby tier (two users, five deployments), Starter at $100 a month, Team at $100 per user per month, and custom Enterprise pricing (Prefect pricing).

The units drive behaviour. Dagster+ charges per materialization, so a design with thousands of tiny partitioned assets costs more than one with fewer, larger ones. Astro charges for deployment hours, so many small, rarely used environments add up. Prefect’s tiers are bounded by users and deployments, which suits small teams and gets more expensive per head as the team grows.

Which orchestrator fits which team

Choose Airflow when your organisation already runs it, when you orchestrate many systems besides the warehouse (APIs, file transfers, ML jobs, cloud services) and want an existing provider package for each, or when you want the widest pool of engineers who already know the tool. AWS, Google Cloud and Astronomer will each run it for you. Airflow 3 removes the worst historical pain points, versioning and backfills among them. The trade-off is heavier local development and a task-first model where data lineage is something you add rather than get.

Choose Dagster when the orchestrator’s job is to keep tables fresh: an analytics engineering team building a warehouse, often with dbt, which Dagster loads as assets through its dbt integration. You get a lineage graph, freshness and data checks in the same place as the schedule. If your pipelines already carry the tests from our data-quality tests playbook, asset checks are a natural home for them. The trade-off is a steeper learning curve for engineers who think in tasks, and a vendor that is now part of Prefect.

Choose Prefect when your workflows are Python applications: ML training, API polling, report generation, or anything with branching, retries and dynamic fan-out that would be awkward as a static DAG. A small team can go from script to scheduled deployment in an afternoon. The trade-off is that Prefect knows about function runs rather than datasets, so warehouse-wide lineage needs another tool.

Running Airflow 2 today? Upgrade to Airflow 3 before you consider switching. The upgrade changes imports and context keys, while a rewrite into another orchestrator’s model touches every pipeline. Switch only if the model itself, not the version, is the problem.

Do you need a general-purpose orchestrator at all?

Many data teams adopt Airflow to do three things: run ingestion syncs, run transformations, then refresh dashboards. If your ELT tool schedules its own syncs (see our Airbyte vs Fivetran vs Meltano comparison) and your transformation layer runs on its own schedule, a separate orchestrator may only be managing cron. It earns its keep when work spans systems: a sync must finish before a model builds, a model must pass tests before a report goes out, and a failure in one place must stop the next step.

Goni is one option on that consolidation path. Full disclosure: this is our product. Goni is one AI platform for your entire data stack: ELT connectors with scheduled batch pipelines (cron or interval schedules, incremental loads, run history and failure notifications to Slack or webhooks), a ClickHouse warehouse, a YAML semantic layer with scheduled data-quality tests, and BI with dashboards, alerts and scheduled reports. For teams whose orchestration is mostly “load, test, refresh”, that can remove a separate orchestrator. It is not a general-purpose orchestrator: it schedules its own pipelines, tests and reports rather than arbitrary Python, and ClickHouse is the only warehouse it queries. If you want to see whether it covers your workload, book a demo or start the 14-day trial.

FAQ

Is Airflow still worth learning in 2026?

Yes. Airflow is an Apache Software Foundation project with the largest provider ecosystem of the three, and AWS, Google Cloud and Astronomer all offer it as a managed service, so the skill transfers between employers. Learn Airflow 3 specifically: Airflow 2 reached end of life in April 2026, and Airflow 3 changed the task interface, assets and backfills.

Is Dagster better than Airflow?

Dagster is better when your pipelines exist to produce tables and you want lineage, freshness and data checks built into the orchestrator. Airflow is better when you orchestrate many different systems, need the broadest integration catalog, or want managed options from major clouds. Airflow 3 added assets, but Dagster’s whole model is built around them.

What happens to Dagster after the Prefect acquisition?

According to Dagster’s letter to users, Dagster remains a supported product under its own name, the open source project keeps its existing licence, and Dagster+ deployments, contracts, pricing and support remain unchanged. The combined company is expected to operate under the Prefect name. Watch future renewal terms and roadmap announcements.

Is Prefect easier than Airflow?

For Python developers, usually yes. A Prefect flow is a decorated function you can run directly, local runs need no database setup, and branching uses normal Python. Airflow needs a metadata database even for local tests and organises work as a DAG of tasks. Airflow’s advantage is its larger ecosystem of provider packages and managed services.

Can I use dbt with Airflow, Dagster or Prefect?

Yes, all three run dbt. Dagster’s dbt integration loads each dbt model as an asset, so dbt lineage appears in the Dagster asset graph. Airflow commonly runs dbt through the open-source Cosmos project or a command-line task. Prefect provides a dbt integration package and can also run the dbt CLI from a task.