Apache Airflow
Apache Airflow is a self-hosted platform in the Workflow Orchestration layer of the AI stack. Scheduler and DAG engine long used for batch data engineering.
By Kunj ShahFacts verifiedmethod
- Licence
- Apache-2.0
- Language
- Python
- Cost
- free
- Owned by
- ML PlatformData & Retrieval
Use Apache Airflow when
Scheduled batch data engineering, where DAGs are the shared language.
Skip Apache Airflow when
You are building a latency-sensitive product: it was not designed for one.
Survives the retries, the waits and the crashes. See every workflows tool.
Badge this entry
[](https://lattice.kunjshah.in/workflow-orchestration/apache-airflow)Rules of thumb
- If a step can fail halfway, it will. Write every step so running it twice is safe.
- Durable execution fixes crashes, not bad logic. Retries replay your bugs as faithfully as your successes.
- Use a queue and a cron until you need waits, retries and visibility across hours. Then adopt an engine, not before.
Quick answers
- Is Apache Airflow open source?
- Yes. Apache Airflow is open source under the Apache-2.0 licence. It is free to use.
- What are the alternatives to Apache Airflow?
- The closest alternatives to Apache Airflow are Dagster and Prefect.
Ask an AI about this page
Opens the assistant with this page’s link and a question already filled in.
Reading on workflows
- When not to use an agent frameworkIf you can draw the steps before the model runs, you are writing a workflow, not an agent. Workflows do not need an agent framework.
- Agents need a durable hostThe loop is a weekend project. The part where it keeps working at three in the morning is the actual product, and almost nobody budgets for it.
Alternatives to Apache Airflow
Listed as an alternative to
- DagsterDagsterAsset-oriented orchestration for data and ML pipelines.Apache-2.0 · self-hosted · free
Use when Data and ML pipelines framed as assets with explicit dependencies.
Skip when You want a task queue rather than a lineage-aware orchestrator.
- PrefectPrefectPython-native workflow orchestration with a managed cloud option.Apache-2.0 · self-hosted · free-tier
Use when Python-native flows with a managed cloud option behind them.
Skip when You need deep lineage modelling.
Also in workflows
- TemporalTemporalDurable execution engine that survives crashes and long waits.MIT · self-hosted · free
Use when Work spanning minutes or hours that must survive restarts and retries.
Skip when You need it live in a day: the adoption cost is real.
- InngestInngestEvent-driven step functions with durable replay for TypeScript.Apache-2.0 · saas · free-tier
Use when Durable step functions in TypeScript, without running the engine.
Skip when You are not working in TypeScript.
- Trigger.devTrigger.devBackground jobs and AI workflows with long-running task support.Apache-2.0 · saas · free-tier
Use when Long-running background jobs that must survive a deploy.
Skip when You need more than TypeScript.
- DagsterDagsterAsset-oriented orchestration for data and ML pipelines.Apache-2.0 · self-hosted · free
Use when Data and ML pipelines framed as assets with explicit dependencies.
Skip when You want a task queue rather than a lineage-aware orchestrator.
- PrefectPrefectPython-native workflow orchestration with a managed cloud option.Apache-2.0 · self-hosted · free-tier
Use when Python-native flows with a managed cloud option behind them.
Skip when You need deep lineage modelling.
- RestateRestateDurable execution with a low-latency stateful API surface.BSL-1.1 · self-hosted · free
Use when Durable execution with a genuinely low-latency stateful API surface.
Skip when You need the largest ecosystem around the engine.
- DBOSDBOSDurable workflows as ordinary Python functions and decorators.Apache-2.0 · self-hosted · free
Use when Durable workflows as ordinary Python functions and decorators.
Skip when You want a separate service to operate.
- Fly MachinesFly MachinesHosting for stateful containers that fits durable agent workers.proprietary · managed · usage-based
Use when Hosting stateful containers that fits durable agent workers.
Skip when You want to own the infrastructure layer.
- ModalModalServerless GPU and container platform popular for batch inference.proprietary · saas · usage-based
Use when Serverless GPUs and containers for batch inference and scheduled jobs.
Skip when Data locality rules forbid ephemeral compute.