Apache Airflow
- Problem solved: schedule and chain hundreds of interdependent batch jobs, with retries, monitoring and history, where cron and scripts calling each other no longer suffice.
- Era: started in October 2014 at Airbnb; open source announced on June 2, 2015; Apache Incubator on March 31, 2016; top-level project announced on January 8, 2019; Airflow 2.0 on December 17, 2020; Airflow 3.0 on April 22, 2025.
- Created by: Maxime Beauchemin, at Airbnb.
- Category: workflow orchestration.
Historical context
In the early 2010s, every data team ends up writing batch jobs: they run on a schedule, depend on datasets produced by other jobs, and other jobs depend on them. Airbnb's announcement post describes the usual slope: you start with "the good old cron scheduler", then scripts call other scripts, then a small in-house framework appears to store job status. These internal tools are "often at least one generation behind the company's need". At Airbnb, the press then mentions 5,000 to 6,000 Hadoop tasks a day [S]. After reviewing the open source solutions, the team concluded that "there wasn't anything in the market that met our current and future needs". Beauchemin later cited Oozie, Azkaban and Luigi as platforms of the same family.
Maxime Beauchemin came from Facebook, which he joined in 2011 as a business intelligence engineer and left in 2013 as a "data engineer", according to his 2017 article The Rise of the Data Engineer. He started Airflow at Airbnb in October 2014. The official documentation states that the project was "open source from the very first commit". On June 2, 2015, Airbnb announced it publicly under the Apache license: pipelines are Python code, following the "configuration as code" principle, because "Python has firmly established itself as the language of data".
The project entered the Apache Incubator on March 31, 2016. Graduation was voted on December 19, 2018 and announced on January 8, 2019: the ASF then counted more than 200 user organizations (Adobe, Etsy, Google, ING, Lyft, PayPal, Twitter...), and the board report listed 674 contributors. Bolke de Bruin, the project's vice president, called it "the de-facto standard for workflow orchestration". The clouds followed: Qubole offered it as a service from September 2016, Google launched Cloud Composer (beta in May 2018, GA in July 2018), then AWS launched Amazon MWAA on November 24, 2020.
Two rewrites mark what came next. Airflow 2.0 (December 2020) brought the TaskFlow API and a highly available scheduler, and split the project into a core and 61 providers. Airflow 3.0 (April 2025), "the biggest release in Airflow's history", separated task execution from the core (Task Execution API and Task SDK), rewrote the UI in React and added DAG versioning. The announcement then claimed 30 million downloads per month and 80,000 user organizations.
Key idea
A pipeline is a DAG (directed acyclic graph) of tasks written in Python. Because it is code, it can be versioned, tested, generated dynamically from metadata, and inspected in a web interface. The scheduler reads these DAGs, decides which tasks are ready according to the schedule and dependencies, and hands them to workers. Every run is recorded in a database: you see what failed, rerun a task, replay a past period (backfill).
How it works
- Components (2015 post): DAG definitions in source control, a rich CLI, a web application (Flask originally), a metadata database (MySQL or Postgres), workers and scheduler processes.
- Hooks: abstraction of external systems (Hive, Presto, MySQL, HDFS, S3...), with a centralized vault for credentials.
- Operators: task types built on hooks. Three families: actions, transfers from one system to another, and sensors that wait until a condition is met.
- Executors: where tasks run. In 2015: Sequential (testing), Local (threads), Celery (distributed). The KubernetesExecutor, which existed before 2.0, was rewritten in 2.0 (over 3,000 lines of code removed).
- Providers (since 2.0): separate packages per external service (Google, Amazon, Snowflake...), installable à la carte.
- Airflow 3: a Task Execution Interface and Task SDKs decouple tasks from the core; scheduling can also be triggered by events (Event Driven Scheduling).
DAG example with the Airflow 2.0 TaskFlow API, taken as is from the official blog: dependencies are inferred from function calls.
from airflow.decorators import dag, task
from airflow.utils.dates import days_ago
@dag(default_args={'owner': 'airflow'}, schedule_interval=None, start_date=days_ago(2))
def tutorial_taskflow_api_etl():
@task
def extract():
return {"1001": 301.27, "1002": 433.21, "1003": 502.22}
@task
def transform(order_data_dict: dict) -> dict:
total_order_value = 0
for value in order_data_dict.values():
total_order_value += value
return {"total_order_value": total_order_value}
@task()
def load(total_order_value: float):
print("Total order value is: %.2f" % total_order_value)
order_data = extract()
order_summary = transform(order_data)
load(order_summary["total_order_value"])
tutorial_etl_dag = tutorial_taskflow_api_etl()
By the numbers
| Figure | Context | Source |
|---|---|---|
| 5,000 to 6,000 | Hadoop tasks per day at Airbnb (2015) | InformationWeek [S] |
| 200+ | User organizations at graduation (Jan. 2019) | ASF announcement |
| 674 | Contributors, up from 580 in October 2018 | ASF board report (Jan. 2019) |
| 250 PB | Data managed by PayPal, which relies on Airflow among others (2019) | ASF announcement |
| 61 | Provider packages at the Airflow 2.0 launch (Dec. 2020) | Airflow 2.0 blog |
| 5 million | Tasks per month handled by Cloud Composer at GA (July 2018) | Google Cloud blog |
| 30 million | Monthly downloads, 30x more than in 2020 (Apr. 2025) | Airflow 3 blog |
| 80,000 | User organizations, up from 25,000 in 2020 (Apr. 2025) | Airflow 3 blog |
Milestones
- October 2014: Maxime Beauchemin starts Airflow at Airbnb.
- June 2, 2015: Airbnb announces the open sourcing under the Apache license.
- March 31, 2016: enters the Apache Incubator.
- September 2016: Qubole offers Airflow as a managed service (according to the ASF announcement).
- May 2018: Google launches Cloud Composer in beta, GA in July 2018.
- January 8, 2019: Airflow announced as an Apache top-level project (graduation voted on December 19, 2018).
- November 24, 2020: AWS launches Amazon Managed Workflows for Apache Airflow (MWAA).
- December 17, 2020: Airflow 2.0 (TaskFlow API, HA scheduler, providers).
- April 22, 2025: Airflow 3.0 (Task SDK, React UI, DAG versioning).
Did you know?
- The 2015 UI had a Data Profiling section to run SQL queries and draw charts, built with Highcharts and Flask Admin.
- The Airflow 2.0 changelog is "about 3,000 lines long". The same blog reports that Astronomer, benchmarking the new scheduler, "had to triple check the numbers" because the gains seemed implausible.
- Dagster acknowledges Maxime Beauchemin's influence: his article Functional Data Engineering "heavily influenced" its designers (see Dagster).
- According to the Airflow 3 announcement, over 30% of users use it for MLOps and 10% for generative AI workflows.
Strengths and limitations
| Strengths | Limitations |
|---|---|
| Pipelines versioned and generated as Python code | Designed for scheduled batch, not streaming |
| Very large ecosystem of providers and operators | Model centered on tasks rather than on the data produced, a criticism voiced by Dagster |
| History, retries and backfills in the UI | Non-trivial operations (scheduler, database, workers), hence the managed offers |
| Managed offers at Google, AWS and others | Large migrations between major versions (1.10 to 2.0, 2.x to 3.0) |
What came next
- Dagster shifts the center of gravity from tasks to data assets.
- Airflow often orchestrates dbt, Spark, Hive or Airbyte syncs.
- For continuous rather than scheduled flows, see NiFi or Kafka.
Sources
raw-data/apache/airflow/airflow.md- https://airflow.apache.org/docs/apache-airflow/stable/project.html
- https://medium.com/airbnb-engineering/airflow-a-workflow-management-platform-46318b977fd8
- https://incubator.apache.org/projects/airflow.html
- https://news.apache.org/foundation/entry/the-apache-software-foundation-announces44
- https://www.apache.org/foundation/board/minutes/2019/board_minutes_2019_01_16.html
- https://airflow.apache.org/blog/airflow-two-point-oh-is-here/
- https://airflow.apache.org/blog/airflow-three-point-oh-is-here/
- https://aws.amazon.com/blogs/aws/introducing-amazon-managed-workflows-for-apache-airflow-mwaa/
- https://cloud.google.com/blog/products/data-analytics/cloud-composer-is-now-in-beta-build-and-run-practical-workflows-with-minimal-effort
- https://cloud.google.com/blog/products/gcp/bridging-the-gap-between-data-and-insights
- https://www.freecodecamp.org/news/the-rise-of-the-data-engineer-91be18f1e603/
- [S] InformationWeek, 2015-06-11 (see
raw-data/chronologie/jalons-sources.md)
- Astronomer offer: launch date and role in the project (official astronomer.io source to find).
- Current contributor count, from an official page (not GitHub).
- Version and date when the KubernetesExecutor was added (to be sourced).