Lesson 1 · Foundations
What Airflow is, and why
Workflow orchestration — and why it beats a pile of cron jobs.
Your win: explain in one breath what Airflow is and why teams reach for it over cron — grounded in the data pipeline this repo actually runs.
The problem: pipelines are more than "run this at 2am"
A real data pipeline has steps with dependencies (fetch → transform → validate → load), runs on a schedule, and fails — so it needs retries, alerts, and a way to see what happened. Plain cron gives you none of that: no dependencies, no retries, no backfill of missed days, no UI.1
Airflow's answer: workflows as code
Apache Airflow is a platform to author, schedule, and monitor workflows as code. Each workflow is a DAG — a directed acyclic graph of tasks (Lesson 2). Airflow adds, on top of "run on a schedule": task dependencies, retries & alerting, backfills over history, a UI/API for observability, and shared connections/variables.2
What this repo runs
sync-learnosity-data fetches data, runs Spark transforms to build warehouse
tables, validates the result, and alerts Slack on failure — on a daily cron
(airflow/dags/rules.yaml). ⚠️ Note: Airflow is the
data-pipeline stack (codename hephaestus + Spark), sitting
downstream of your services' data (captured via Kafka/CDC) — it's not inside
conversationmgmt/notification/spike. And ./local/run.bash cron is a
separate plain cron runner, not Airflow.
Airflow 101: Building Your First Workflow
The official hands-on intro — author a DAG and watch it run. Pair with the free Astronomer Academy "Airflow 101" path (aimed at the Fundamentals cert).
→ airflow.apache.org — Airflow 101
→ academy.astronomer.io — Airflow 101
Check yourself (from memory)
Q1. Airflow lets you author workflows as…
rules.yaml, Lesson 10.)
Q2. Airflow's main advantage over cron is…
Q3. In this repo, Airflow orchestrates…
sync-learnosity-data run
Spark transforms to build the warehouse, downstream of your services' data (via Kafka/CDC).