# tekhahmad/data-engineering-zoomcamp architecture

> Architecture diagram of the GitHub repository tekhahmad/data-engineering-zoomcamp, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tekhahmad/data-engineering-zoomcamp
- Repository: https://github.com/tekhahmad/data-engineering-zoomcamp

## Overview

This repository is a hands-on data-engineering course, not a single deployed pipeline. Its learner-facing path spans ingestion, warehousing, batch processing, and streaming, with examples and exercises illustrating each stage. The tree and samples support several concrete workflows: scheduled CSV-to-Postgres ingestion, Kafka ride production and persistence, and Kafka-to-Spark streaming aggregation. Other README syllabus topics are noted only where the tree provides a corresponding source path. Unsampled examples are included as subsystems, but their internal wiring is not inferred.

Main entry points: [`01-docker-terraform/pipeline/ingest_data.py`](https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/01-docker-terraform/pipeline/ingest_data.py) (Course modules), [`07-streaming/code/src/consumers/consumer_postgres.py`](https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/07-streaming/code/src/consumers/consumer_postgres.py) (Postgres consumer), [`07-streaming/code/src/producers/producer_realtime.py`](https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/07-streaming/code/src/producers/producer_realtime.py) (Ride producer), [`cohorts/2023/week_6_stream_processing/streaming_confluent.py`](https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/cohorts/2023/week_6_stream_processing/streaming_confluent.py) (Spark streaming workflow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingest["Data ingestion"]
  node_local_dag["Local ingestion DAG"]
  node_ingest_script["Chunked CSV loader<br/>[ingest_script.py]"]
  node_postgres[("PostgreSQL")]
  node_gcs_dag["GCS ingestion DAG"]
  node_dlt_workshop["DLT ingestion workshop"]
end

subgraph group_warehouse["Warehousing and batch"]
  node_warehouse_loader["Taxi data loader"]
  node_gcs_extras["Web-to-GCS examples"]
  node_bq_dag["GCS-to-BigQuery DAG<br/>[gcs_to_bq_dag.py]"]
  node_spark_sql["Spark SQL examples<br/>[06_spark_sql.py]"]
  node_spark_bq["Spark BigQuery"]
end

subgraph group_stream["Streaming data"]
  node_stream_producer["Ride producer"]
  node_ride_model["Ride model<br/>[models.py]"]
  node_kafka["Kafka"]
  node_postgres_consumer["Postgres consumer"]
  node_spark_stream["Spark streaming workflow"]
  node_confluent_producer["Confluent CSV producer"]
  node_avro_producer["Avro producer<br/>[producer.py]"]
  node_avro_records["Avro ride records<br/>[ride_record.py]"]
  node_json_ride["JSON ride model<br/>[ride.py]"]
  node_redpanda_consumer["Redpanda JSON consumer<br/>[consumer.py]"]
end

subgraph group_course["Course materials"]
  node_course_modules["Course modules<br/>[ingest_data.py]"]
end

node_learner(("Learner"))

node_learner -->|"studies"| node_course_modules
node_course_modules -->|"includes ingestion"| node_ingest_script
node_course_modules -->|"includes warehousing"| node_warehouse_loader
node_course_modules -->|"includes batch"| node_spark_sql
node_course_modules -->|"includes streaming"| node_stream_producer
node_local_dag -->|"calls"| node_ingest_script
node_ingest_script -->|"writes rows"| node_postgres
node_gcs_dag -.->|"orchestrates ingestion"| node_gcs_extras
node_warehouse_loader -.->|"loads data"| node_postgres
node_stream_producer -->|"creates rides"| node_ride_model
node_stream_producer -->|"publishes rides"| node_kafka
node_postgres_consumer -->|"deserializes rides"| node_ride_model
node_postgres_consumer -->|"consumes rides"| node_kafka
node_postgres_consumer -->|"inserts rows"| node_postgres
node_confluent_producer -->|"publishes records"| node_kafka
node_spark_stream -->|"reads and writes"| node_kafka
node_spark_stream -->|"aggregates rides"| node_spark_stream
node_avro_producer -->|"serializes records"| node_avro_records
node_avro_producer -->|"publishes records"| node_kafka
node_redpanda_consumer -->|"decodes rides"| node_json_ride
node_redpanda_consumer -->|"consumes records"| node_kafka
node_course_modules -->|"includes workshop"| node_dlt_workshop
node_course_modules -->|"includes BigQuery batch"| node_spark_bq
node_course_modules -->|"includes warehouse workflow"| node_bq_dag

click node_local_dag "https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/cohorts/2022/week_2_data_ingestion/airflow/dags_local/data_ingestion_local.py"
click node_ingest_script "https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/cohorts/2022/week_2_data_ingestion/airflow/dags_local/ingest_script.py"
click node_gcs_dag "https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/cohorts/2022/week_2_data_ingestion/airflow/dags/data_ingestion_gcs_dag.py"
click node_dlt_workshop "https://github.com/tekhahmad/data-engineering-zoomcamp/tree/main/cohorts/2026/workshops/dlt"
click node_warehouse_loader "https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/03-data-warehouse/load_yellow_taxi_data.py"
click node_gcs_extras "https://github.com/tekhahmad/data-engineering-zoomcamp/tree/main/03-data-warehouse/extras"
click node_bq_dag "https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/cohorts/2022/week_3_data_warehouse/airflow/dags/gcs_to_bq_dag.py"
click node_spark_sql "https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/06-batch/code/06_spark_sql.py"
click node_spark_bq "https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/06-batch/code/06_spark_sql_big_query.py"
click node_stream_producer "https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/07-streaming/code/src/producers/producer_realtime.py"
click node_ride_model "https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/07-streaming/code/src/models.py"
click node_postgres_consumer "https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/07-streaming/code/src/consumers/consumer_postgres.py"
click node_spark_stream "https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/cohorts/2023/week_6_stream_processing/streaming_confluent.py"
click node_confluent_producer "https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/cohorts/2023/week_6_stream_processing/producer_confluent.py"
click node_avro_producer "https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/07-streaming/extras/extras/python/avro_example/producer.py"
click node_avro_records "https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/07-streaming/extras/extras/python/avro_example/ride_record.py"
click node_json_ride "https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/07-streaming/extras/extras/python/json_example/ride.py"
click node_redpanda_consumer "https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/07-streaming/extras/extras/python/redpanda_example/consumer.py"
click node_course_modules "https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/01-docker-terraform/pipeline/ingest_data.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_local_dag,node_ingest_script,node_postgres,node_gcs_dag,node_dlt_workshop toneBlue
class node_warehouse_loader,node_gcs_extras,node_bq_dag,node_spark_sql,node_spark_bq toneAmber
class node_stream_producer,node_ride_model,node_kafka,node_postgres_consumer,node_spark_stream,node_confluent_producer,node_avro_producer,node_avro_records,node_json_ride,node_redpanda_consumer toneMint
class node_course_modules toneRose
class node_learner toneIndigo
```

## Components

### Data ingestion

- [Local ingestion DAG](https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/cohorts/2022/week_2_data_ingestion/airflow/dags_local/data_ingestion_local.py): `cohorts/2022/week_2_data_ingestion/airflow/dags_local/data_ingestion_local.py`
- [Chunked CSV loader](https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/cohorts/2022/week_2_data_ingestion/airflow/dags_local/ingest_script.py): `cohorts/2022/week_2_data_ingestion/airflow/dags_local/ingest_script.py`
- **PostgreSQL**
- [GCS ingestion DAG](https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/cohorts/2022/week_2_data_ingestion/airflow/dags/data_ingestion_gcs_dag.py): `cohorts/2022/week_2_data_ingestion/airflow/dags/data_ingestion_gcs_dag.py`
- [DLT ingestion workshop](https://github.com/tekhahmad/data-engineering-zoomcamp/tree/main/cohorts/2026/workshops/dlt): `cohorts/2026/workshops/dlt`

### Warehousing and batch

- [Taxi data loader](https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/03-data-warehouse/load_yellow_taxi_data.py): `03-data-warehouse/load_yellow_taxi_data.py`
- [Web-to-GCS examples](https://github.com/tekhahmad/data-engineering-zoomcamp/tree/main/03-data-warehouse/extras): `03-data-warehouse/extras`
- [GCS-to-BigQuery DAG](https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/cohorts/2022/week_3_data_warehouse/airflow/dags/gcs_to_bq_dag.py): `cohorts/2022/week_3_data_warehouse/airflow/dags/gcs_to_bq_dag.py`
- [Spark SQL examples](https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/06-batch/code/06_spark_sql.py): `06-batch/code/06_spark_sql.py`
- [Spark BigQuery](https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/06-batch/code/06_spark_sql_big_query.py): `06-batch/code/06_spark_sql_big_query.py`

### Streaming data

- [Ride producer](https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/07-streaming/code/src/producers/producer_realtime.py): `07-streaming/code/src/producers/producer_realtime.py`
- [Ride model](https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/07-streaming/code/src/models.py): `07-streaming/code/src/models.py`
- **Kafka**
- [Postgres consumer](https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/07-streaming/code/src/consumers/consumer_postgres.py): `07-streaming/code/src/consumers/consumer_postgres.py`
- [Spark streaming workflow](https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/cohorts/2023/week_6_stream_processing/streaming_confluent.py): `cohorts/2023/week_6_stream_processing/streaming_confluent.py`
- [Confluent CSV producer](https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/cohorts/2023/week_6_stream_processing/producer_confluent.py): `cohorts/2023/week_6_stream_processing/producer_confluent.py`
- [Avro producer](https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/07-streaming/extras/extras/python/avro_example/producer.py): `07-streaming/extras/extras/python/avro_example/producer.py`
- [Avro ride records](https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/07-streaming/extras/extras/python/avro_example/ride_record.py): `07-streaming/extras/extras/python/avro_example/ride_record.py`
- [JSON ride model](https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/07-streaming/extras/extras/python/json_example/ride.py): `07-streaming/extras/extras/python/json_example/ride.py`
- [Redpanda JSON consumer](https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/07-streaming/extras/extras/python/redpanda_example/consumer.py): `07-streaming/extras/extras/python/redpanda_example/consumer.py`

### Course materials

- [Course modules](https://github.com/tekhahmad/data-engineering-zoomcamp/blob/main/01-docker-terraform/pipeline/ingest_data.py): `01-docker-terraform/pipeline/ingest_data.py`

### Other components

- **Learner**

## Connections

- Learner → Course modules: studies (evidence: `README.md`)
- Course modules → Chunked CSV loader: includes ingestion (evidence: `README.md`)
- Course modules → Taxi data loader: includes warehousing (evidence: `README.md`)
- Course modules → Spark SQL examples: includes batch (evidence: `README.md`)
- Course modules → Ride producer: includes streaming (evidence: `README.md`)
- Local ingestion DAG → Chunked CSV loader: calls (evidence: `cohorts/2022/week_2_data_ingestion/airflow/dags_local/data_ingestion_local.py`)
- Chunked CSV loader → PostgreSQL: writes rows (evidence: `cohorts/2022/week_2_data_ingestion/airflow/dags_local/ingest_script.py`)
- GCS ingestion DAG → Web-to-GCS examples: orchestrates ingestion
- Taxi data loader → PostgreSQL: loads data
- Ride producer → Ride model: creates rides (evidence: `07-streaming/code/src/producers/producer_realtime.py`)
- Ride producer → Kafka: publishes rides (evidence: `07-streaming/code/src/producers/producer_realtime.py`)
- Postgres consumer → Ride model: deserializes rides (evidence: `07-streaming/code/src/consumers/consumer_postgres.py`)
- Postgres consumer → Kafka: consumes rides (evidence: `07-streaming/code/src/consumers/consumer_postgres.py`)
- Postgres consumer → PostgreSQL: inserts rows (evidence: `07-streaming/code/src/consumers/consumer_postgres.py`)
- Confluent CSV producer → Kafka: publishes records (evidence: `cohorts/2023/week_6_stream_processing/producer_confluent.py`)
- Spark streaming workflow → Kafka: reads and writes (evidence: `cohorts/2023/week_6_stream_processing/streaming_confluent.py`)
- Spark streaming workflow → Spark streaming workflow: aggregates rides (evidence: `cohorts/2023/week_6_stream_processing/streaming_confluent.py`)
- Avro producer → Avro ride records: serializes records (evidence: `07-streaming/extras/extras/python/avro_example/producer.py`)
- Avro producer → Kafka: publishes records (evidence: `07-streaming/extras/extras/python/avro_example/producer.py`)
- Redpanda JSON consumer → JSON ride model: decodes rides (evidence: `07-streaming/extras/extras/python/redpanda_example/consumer.py`)
- Redpanda JSON consumer → Kafka: consumes records (evidence: `07-streaming/extras/extras/python/redpanda_example/consumer.py`)
- Course modules → DLT ingestion workshop: includes workshop (evidence: `README.md`)
- Course modules → Spark BigQuery: includes BigQuery batch (evidence: `README.md`)
- Course modules → GCS-to-BigQuery DAG: includes warehouse workflow (evidence: `README.md`)
