How johnlotome/data-engineering-zoomcamp works
Project Type and Purpose
• This is a multi‐week data‐engineering curriculum codebase, illustrating a full data‐engineering workflow rather than a single standalone application.
• Purpose: Teach students how to build data pipelines, from provisioning infra with Terraform, through ingestion (Airflow), storage (GCS, Postgres), warehousing (BigQuery), transformation (dbt), batch processing (Spark), to streaming (Kafka).
File Structure (key directories)
• week_1_basics_n_setup
– Terraform on GCP
– Docker + Postgres local
• week_2_data_ingestion
– Airflow DAGs for local Postgres and GCS ingestion
– Transfer service (AWS→GCP)
• week_3_data_warehouse
– Airflow DAG to load data into BigQuery
– BigQuery SQL scripts & ML examples
• week_4_analytics_engineering
– dbt project (models, macros, seeds) targeting BigQuery
• week_5_batch_processing
– Spark examples + Airflow operators for Spark & BigQuery
• week_6_stream_processing
– Kafka producer/consumer tutorials
– Spark Streaming / Kafka Streams
• project
– Placeholder for student capstone project
README for Technical Stack & Architecture
• Core technologies: GCP (GCS, BigQuery), Terraform, Docker, Postgres, Airflow, dbt, Spark, Kafka
Main Components & Their Interactions
a. Infrastructure-Provisioning Layer
– Terraform (GCP resources: GCS buckets, BigQuery datasets, VMs or managed services)
b. Development & Orchestration Layer
– Docker + docker-compose for local Postgres, Airflow, Kafka, Spark
– Airflow scheduler & webserver running DAGs
c. Data-Ingestion Layer
– Airflow DAGs pull raw data (HTTP/CURL/jobs) → land in GCS (Data Lake) and/or local Postgres
– AWS Transfer Service moves data from S3 → GCS
d. Storage Layer
– Raw files in GCS
– Local/Postgres for development
– BigQuery as Data Warehouse
e. Transformation Layer
– dbt (models compile & run transforming staging → core tables in BigQuery)
f. Batch-Processing Layer
– Spark jobs (PySpark/Scala) reading from GCS or BigQuery, writing processed outputs back to GCS or BigQuery
– Airflow tasks orchestrate Spark applications
g. Streaming Layer
– Kafka producers ingest event streams
– Kafka brokers (topics)
– Kafka consumers / Kafka Streams or Spark Streaming jobs process real‐time data → write to BigQuery or GCS
h. BI & Analytics Layer
– Notebooks (Jupyter) and Google Data Studio / Looker on top of BigQuery
Recommended Architectural Patterns & Principles
• Modular, layered architecture: clearly separate ingestion, storage, transformation, processing, and serving.
• Orchestration via declarative DAGs (Airflow) for batch and streaming pipelines.
• Infrastructure-as-Code (Terraform) ensures reproducible environments.
• Containerization (Docker) for local dev parity.
• Polyglot processing: SQL in BigQuery, Python in Airflow & Spark, dbt DSL for transformations, Kafka Streams API for streaming.