Technology · Orchestration

Airflow, so your pipelines
run without you.

Airflow runs your data jobs in the right order, at the right time, and tells you when one of them fails. We run it in production, on its own or in Google’s managed version, Cloud Composer.

OrchestrationPythonOpen sourceCloud Composer

THE TOOL

Airflow in brief.

A data platform chains dozens of tasks every night: fetching yesterday’s sales, loading ad spend, running the transformations, refreshing the dashboards. Airflow directs that sequence. This is what we call orchestration: each pipeline is described in Python as a graph of tasks, the DAG, with its dependencies, its schedules and its retry rules.

Airflow is an open source project of the Apache foundation. The software is free; you pay for the machines that keep it running, or for a managed service such as Google’s Cloud Composer. Its interface shows the status of each task, day by day, and lets you replay a missed day.

OUR PRACTICE

What we build with Airflow.

01

The daily feed of a platform.

For a cosmetics brand, nearly 30 sources (e-commerce, ERP, CRM, advertising, customer service) land in the data warehouse, then the dbt transformations run.

02

Pipelines all the way to alerts.

At a high-tech manufacturer, the Airflow pipelines run from marketing, sales and inventory sources through to dashboards and alerts.

03

The orchestration of a migration.

Moving from Postgres to BigQuery for an eyewear brand: Airflow orchestrates the loading of files received over SFTP and the calculation of valued stock.

04

Financial reporting.

For a rail leasing company, Cloud Composer launches the ingestion of the accounting database, then the dbt models that feed Power BI.

IN PRACTICE

For whom, and for whom not.

Airflow is a good choice if…

  • You have many pipelines that depend on one another.
  • Your sources are varied: APIs, files, databases, off-the-shelf connectors.
  • You want a standard tool that many data engineers already know.
  • You need to be able to replay history when a source corrects its data.

Look elsewhere if…

  • You have only a few independent jobs: a Cloud Run task triggered by a scheduler needs less upkeep.
  • Your data must flow in real time: Airflow schedules batches, it does not process events on the fly.
  • Nobody will be able to maintain the platform: an Airflow that is never updated ages badly.
  • You are starting from scratch and unsure which tool to pick: read Airflow or Dagster.

IN PRODUCTION

Our implementation rules.

An orchestrator is judged on the night something breaks.

  • Airflow triggers, the warehouse computes: no heavy processing inside Airflow itself. It launches queries, containers and dbt models, and waits for the result.
  • Replayable tasks: rerunning a given day gives the same result, with no duplicates.
  • One alert per failure: each pipeline has its automatic retries and notifies a channel that someone reads.
  • One pipeline per topic, clearly named: source, frequency and destination can be read in the name.
  • No secrets in the code: passwords and API keys are in a vault, not in the files.
  • Deployment through continuous integration: pipelines are versioned in Git, reviewed, tested, then put into production with no manual step.

FREQUENTLY ASKED QUESTIONS

What we are often asked.

Cloud Composer or an Airflow hosted by us?

Cloud Composer in most cases if you are on Google Cloud: Google handles the installation and the updates, and your team concentrates on the pipelines. Hosting it yourself costs less on the bill and more in engineer time. The sums rarely work out for a small team.

Does Airflow replace dbt?

No, they complement each other. dbt describes the transformations inside the data warehouse. Airflow decides when to run them, after which ingestion, and what to do on failure.

What happens when a pipeline fails at night?

The task is retried automatically. If it fails again, an alert goes out with the pipeline name and the error. The dashboards that depend on it are not refreshed with partial data. This is the basis of monitoring a platform.

WHAT COMES NEXT, WE BUILD TOGETHER

Your next project
starts with a conversation.

An idea, a pain point, a project to kick off? Let’s talk about what would make a difference for your teams.

Let’s talk about your project