✦ Want a lab built just for you? ✦
Request a Lab ↗

Orchestrating a Supply Chain Pipeline with Cloud Composer and Dataflow

About this lab

You are a senior data engineer at LogiCore, a manufacturing company that sources components from 200 suppliers across 15 countries. The procurement team needs near-real-time visibility into shipment delays, inventory shortages, and supplier reliability scores, but the existing pipeline is a tangle of cron jobs, custom scripts, and manual file transfers that break every time a supplier changes their data format. Leadership wants a production-grade orchestration layer that can handle failures gracefully.

You will set up a Cloud Composer environment running Apache Airflow, write a DAG that listens for new shipment events on Pub/Sub, triggers a Dataflow pipeline to enrich and transform the data, loads results into BigQuery, and sends alerts when inventory drops below safety thresholds. You will also implement retry policies, SLA monitoring, and a backfill mechanism for reprocessing historical data.

Lab details

  • Level: Advanced
  • Cloud: GCP
  • Domain: Data Engineering
  • Duration: 90 minutes

What you will learn

  • Create Pub/Sub topics and BigQuery datasets using the GCP console for event ingestion
  • Set up a Cloud Composer environment with Airflow for pipeline orchestration
  • Build an Apache Beam pipeline on Dataflow that enriches shipment events with supplier and component data
  • Write an Airflow DAG that coordinates Pub/Sub sensing, Dataflow execution, and BigQuery loading
  • Implement retry policies, SLA monitoring, and inventory threshold alerts
  • Run a historical backfill to reprocess past shipment data through the pipeline

Concepts covered

  • Cloud Composer
  • Apache Airflow
  • Dataflow
  • Apache Beam
  • Pub/Sub
  • BigQuery
  • Event-driven Architecture
  • Pipeline Orchestration

Technologies used

  • Cloud Composer
  • Dataflow
  • Pub/Sub
  • BigQuery
  • Cloud Storage

Prerequisites

  • A Google Cloud account with billing enabled (Composer requires paid resources)
  • Familiarity with Python and basic SQL
  • Understanding of publish/subscribe messaging patterns
  • Basic knowledge of Apache Airflow concepts (DAGs, operators, sensors)

Topics

  • GCP
  • Cloud Composer
  • Airflow
  • Dataflow
  • Apache Beam
  • Pub/Sub
  • BigQuery
  • Event-driven
  • Supply Chain
  • Data Engineering
  • Advanced