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

Automating your code with a DAG

To turn this into a DAG, a few things need to be completed. These include setting up the DAG as originally designed as well as making use of some new tools that we have not covered yet around operators.

In most examples and code generation throughout this book, we will provide the code upfront and step through the information specific to the information provided throughout the chapter. The code for this can be found in the GitHub repository.

  1. First, we begin by importing the required Python and Airflow libraries to build the DAG and create a variable called dag_owner to define who the author of the DAG is. We’ll use the same libraries as our Jupyter Notebook exploration, as well as necessary Airflow imports:
    import json
    import pathlib
    import airflow
    import requests
    import requests.exceptions as request_exceptions
    from datetime import date
    from airflow import DAG
    from airflow.operators.bash import BashOperator
    from airflow.operators.python...
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