Data Pipelines & Orchestration
Why Pipeline Orchestration?
ML data pipelines have many sequential, dependent steps: raw data → validation → cleaning → feature engineering → training → evaluation → serving. Orchestrators: • Schedule pipelines on a cron or event trigger • Manage dependencies between tasks • Retry failed steps automatically • Provide visibility into what ran, when, and with what data
Popular Orchestrators
Apache Airflow — Most popular. DAG-based. Strong ecosystem. Heavy to self-host. Prefect — Python-native. Better DX than Airflow. Cloud-managed option. Metaflow (Netflix) — Data science focused. Excellent versioning. Kubeflow Pipelines — Kubernetes-native. Best for large-scale distributed training. ZenML — MLOps framework that can use any orchestrator as backend.
Prefect ML Pipeline
@task with cache_key_fn caches task outputs — if data hasn't changed, expensive data loading steps are skipped automatically.
Finished reading? Mark it complete to earn your XP.