Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Apache Airflow Best Practices
  • Table Of Contents Toc
Apache Airflow Best Practices

Apache Airflow Best Practices

By : Dylan Intorf, Dylan Storey, Kendrick van Doorn
5 (2)
close
close
Apache Airflow Best Practices

Apache Airflow Best Practices

5 (2)
By: Dylan Intorf, Dylan Storey, Kendrick van Doorn

Overview of this book

Data professionals face the challenge of managing complex data pipelines, orchestrating workflows across diverse systems, and ensuring scalable, reliable data processing. This definitive guide to mastering Apache Airflow, written by experts in engineering, data strategy, and problem-solving across tech, financial, and life sciences industries, is your key to overcoming these challenges. Covering everything from Airflow fundamentals to advanced topics such as custom plugin development, multi-tenancy, and cloud deployment, this book provides a structured approach to workflow orchestration. You’ll start with an introduction to data orchestration and Apache Airflow 2.x updates, followed by DAG authoring, managing Airflow components, and connecting to external data sources. Through real-world use cases, you’ll learn how to implement ETL pipelines and orchestrate ML workflows in your environment, and scale Airflow for high availability and performance. You’ll also learn how to deploy Airflow in cloud environments, tackle operational considerations for scaling, and apply best practices for CI/CD and monitoring. By the end of this book, you’ll be proficient in operating and using Apache Airflow, authoring high-quality workflows in Python, and making informed decisions crucial for production-ready Airflow implementations.
Table of Contents (20 chapters)
close
close
Lock Free Chapter
1
Part 1: Apache Airflow: History, What, and Why
4
Part 2: Airflow Basics
7
Part 3: Common Use Cases
13
Part 4: Scale with Your Deployed Instance

Scheduler

The previous sections covered how tasks are executed and the best way to enable different use cases of tasks instances to be executed. To determine when these tasks should be scheduled for execution, we need to take a closer look at the Scheduler and its multiple responsibilities:

  • DAG Parsing: The scheduler continuously parses DAG files in the DAG Directory to look for new tasks to schedule. It determines the execution order based on dependencies set within the DAGs.
  • Heartbeat Mechanism: The scheduler operates in a loop, often referred to as the “heartbeat”, where it continually checks for tasks to run, schedules them, and then sleeps for a short duration before checking again.
  • Dynamic Task Scheduling: Unlike traditional cron setups where jobs are fixed, the Airflow scheduler dynamically determines which tasks should run based on their dependencies and state. This allows for more complex workflows with conditional execution paths.

Some...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Apache Airflow Best Practices
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon