The Data Flowcast: Mastering Apache Airflow ® for Data Engineering and AI

Orchestrating 2,000 Airflow pipelines at Luiza Labs with Mateus Ferreira


Listen Later

Running Airflow at the scale of a national retailer means more than just scheduling. It means giving non-engineers a path to ship DAGs, and classifying thousands of runs to know which ones need attention. In this episode, Mateus Ferreira, Senior Data Engineer at Luiza Labs (the technology arm of Magazine Luiza, one of Brazil's largest retailers), joins Marc to talk about the patterns his team uses to run 2,000+ Airflow pipelines across more than four petabytes of data.


Key Takeaways:

  • 00:00 Introduction
  • 01:11 Mateus introduces himself and Luiza Labs, the technology arm of Magazine Luiza (Magalu), one of Brazil's largest retailers (founded 1957). 1,000+ physical stores, multi-region operations, and a data team that has to handle the variability that comes with all of it.
  • 04:33 Lu Brain, Magalu's AI initiative built around their character Lu, and how AI fits into the data work.
  • 06:47 The data reliability engineering channel where AI summarizes Airflow errors with confidence scores and posts a suggested fix in chat.
  • 08:30 How Airflow became the heart of orchestration. Coming from Control-M in banking, then GCP, then consolidating on Cloud Composer to centralize roughly 2,000 pipelines.
  • 14:23 The YAML wrapper that lets non-engineers ship DAGs. Reads namespace, tables, and Spark options. Handles CDC, JDBC full, and JDBC incremental collection types with checkpoints. All changes go through data reliability engineering.
  • 17:20 Why metadata is the most valuable asset in the AI era, and how the wrapper makes data lineage observable across 2,000 pipelines.
  • 18:26 The Data Reliability Engineering team. A 10-person group that is the window to the company, handling maintenance, validation, corrections, and optimization for the business unit pipelines.
  • 20:09 Operating at four petabytes of data.
  • 21:24 Why they built custom Spark operators. Cost drove the move off the DataprocOperator. The custom operator exposes Spark driver and executor sizing as Airflow parameters and generates the Kubernetes manifest.
  • 24:36 The monitoring dashboard built on the Airflow metadata DB. A timeline view that shows how many DAGs run each hour, used to spread scheduling across the day.
  • 26:37 Classifying DAGs by their last five runs: success, partially correct, intermittent, total failure. A reusable observability pattern.
  • 29:57 How to reach Mateus, and a closing thought in Portuguese on appreciating the good old times while you are living them.


Resources Mentioned:

  • Apache Airflow (airflow.apache.org)
  • Magalu Cloud / MGC
  • Luiza Labs (luizalabs.com) and Magazine Luiza / Magalu
  • Astro Observe (https://www.astronomer.io/product)
  • Mateus Ferreira on LinkedIn (linkedin.com/in/mateusmferreira)


Thanks for listening to "The Data Flowcast: Mastering Apache Airflow® for Data Engineering and AI." If you enjoyed this episode, please leave a 5-star review to help get the word out about the show. And be sure to subscribe so you never miss any of the insightful conversations.


#AI #Automation #Airflow



...more
View all episodesView all episodes
Download on the App Store

The Data Flowcast: Mastering Apache Airflow ® for Data Engineering and AIBy Astronomer

  • 5
  • 5
  • 5
  • 5
  • 5

5

20 ratings


More shows like The Data Flowcast: Mastering Apache Airflow ® for Data Engineering and AI

View all
Freakonomics Radio by Freakonomics Radio + Stitcher

Freakonomics Radio

32,100 Listeners

The Joe Rogan Experience by Joe Rogan

The Joe Rogan Experience

228,383 Listeners

The Twenty Minute VC (20VC): Venture Capital | Startup Funding | The Pitch by Harry Stebbings

The Twenty Minute VC (20VC): Venture Capital | Startup Funding | The Pitch

537 Listeners

Software Engineering Daily by Software Engineering Daily

Software Engineering Daily

626 Listeners

Data Engineering Podcast by Tobias Macey

Data Engineering Podcast

144 Listeners

Masters of Scale by WaitWhat

Masters of Scale

3,976 Listeners

DevOps Paradox by Darin Pope & Viktor Farcic

DevOps Paradox

25 Listeners

The Real Python Podcast by Real Python

The Real Python Podcast

139 Listeners

All-In with Chamath, Jason, Sacks & Friedberg by All-In Podcast, LLC

All-In with Chamath, Jason, Sacks & Friedberg

10,182 Listeners

SmartLess by Jason Bateman, Sean Hayes, Will Arnett

SmartLess

58,066 Listeners

Hard Fork by The New York Times

Hard Fork

5,530 Listeners

The Data Stack Show by Rudderstack

The Data Stack Show

13 Listeners

The Data Engineering Show by The Firebolt Data Bros

The Data Engineering Show

8 Listeners

The AWS Developers Podcast by Amazon Web Services

The AWS Developers Podcast

25 Listeners

The Economics Show by Financial Times

The Economics Show

139 Listeners