concept external system in category apache airflow

appears as: external systems, n external system, external system, external systems
Data Pipelines with Apache Airflow

This is an excerpt from Manning's book Data Pipelines with Apache Airflow.

Postgres is an external system and Airflow supports connecting to a wide range of external systems with the help of many operators in the Airflow ecosystem. This does have an implication; connecting to an external system often requires specific dependencies to be installed which allow connecting and communicating with the external system. This also holds for Postgres; we must install Airflow with pip install apache-airflow[postgres] to install additional Postgres dependencies in our Airflow installation. Many dependencies is one of the characteristics of any orchestration system - in order to communicate with many external systems it is inevitable to install many dependencies on your system.

Whereas we supply a few lines of code ourselves when using the BashOperator and PythonOperator, operators connecting to external systems are often an exercise filling in the blanks, e.g. supplying a SQL query or providing a message and email address to send. Take, for example, the PostgresOperator:

To see when and how to use such operators, in this chapter we’ll develop two DAGs connecting to external systems, and moving and transforming data between these systems. We will inspect the various options Airflow holds (and does not hold)[51] to deal with this use case and the external systems.

Figure 15.7 We cannot control the structure of data in external systems. In our own systems, it’s logical to store data according to the lifecycle of data. For example; unedited data is stored in Raw, derived and transformed data is stored in Processed, and datasets ready for to be transferred are stored in Export.