January 2021 Summaries
2 posts from Astronomer
Filter
Month:
Year:
Post Summaries
Back to Blog
In this comprehensive guide, the author explains a method for implementing Change Data Capture (CDC) using Apache Airflow, focusing on extracting data changes in a near-real-time, flexible, and highly available manner. The guide outlines the process of configuring Airflow to work with Google Cloud Platform (GCP), including setting up security, creating service accounts, and configuring connections between Airflow, CloudSQL, and Google Cloud Storage (GCS). It delves into building a Directed Acyclic Graph (DAG) in Airflow, configuring data partitioning and watermarking for data extraction intervals, and creating custom operators to facilitate the export of data to GCS. The document also emphasizes the importance of understanding Airflow scheduling and timing, introducing key concepts such as execution_date and schedule_interval to achieve near-real-time data synchronization. Additionally, the guide provides instructions on deploying the completed Airflow DAG to production using the Astronomer platform, highlighting the benefits of using this approach to ensure consistency, high availability, and efficient data extraction from production databases.
Jan 21, 2021
5,264 words in the original blog post.
The article continues the discussion from a previous post on creating a scalable analytics architecture using Airflow and dbt, focusing on transitioning from a local to a production environment. It addresses challenges such as updating the manifest.json file automatically, accommodating multiple scheduling intervals, and integrating with a broader ELT pipeline. The solution involves defining model selectors and using dbt's tagging feature to orchestrate different groups of dbt models as separate Airflow DAGs, each with its own schedule. A robust CI process is employed to manage dependencies and create Airflow DAGs that run and test dbt models based on updated schedules. The piece also highlights potential limitations, such as the overhead of task separation and the lack of native threading support, while suggesting enhancements like using Airflow's TaskGroup feature for better organization of complex ETL pipelines. The integration of third-party tools like Singer for data extraction and loading is suggested to complement this setup, enhancing the overall data lifecycle management. The article concludes by expressing an open invitation for community feedback to further refine and improve this integration.
Jan 05, 2021
2,268 words in the original blog post.