How mamadgabut/project-bigdata works
VOI News Lakehouse scrapes VOI.id articles, validates and stores raw records in Bronze, cleans Bronze records into Silver, then builds Gold dimensions, facts, and analytics views. Airflow schedules these as three DAGs; PostgreSQL is the shared lakehouse. The README documents the layer transitions and outputs, while the shown DAG and task code supports the task ownership and sequencing. Source excerpts are partial, so details of unsampled implementations are represented only at the subsystem level.
Main entry points: db_connection.py Database connection · dag3_Warehouse.py Gold DAG · init_lakehouse.sql PostgreSQL lakehouse · dag1_Collecting.py Bronze DAG
Components 17
Airflow orchestration
- Airflow scheduler
- Bronze DAG
dags/dag1_Collecting.py - Silver DAG
dags/dag2_Processing.py - Gold DAG
dags/dag3_Warehouse.py
News collection
- Article scraper
dags/script/main.py - Raw validation
dags/script/validate_raw.py
Medallion processing
- Bronze ingestion
dags/script/save_raw.py - Silver transform
dags/script/preprocessing.py - PostgreSQL lakehouse
db/init_lakehouse.sql - Database connection
dags/script/db_connection.py
Gold analytics
- Silver source validation
dags/script/gold_warehouse.py - Gold schema setup
dags/script/gold_warehouse.py - Dimension loads
dags/script/gold_warehouse.py - Fact load
dags/script/gold_warehouse.py - Gold validation
dags/script/gold_warehouse.py - Analytics views
dags/script/gold_warehouse.py
Other components
- VOI.id
Connections 29
- Airflow scheduler → Bronze DAG: schedules
README.md - Airflow scheduler → Silver DAG: schedules
README.md - Airflow scheduler → Gold DAG: schedules
README.md - Bronze DAG → Article scraper: runs
dags/dag1_Collecting.py - Bronze DAG → Raw validation: runs next
dags/dag1_Collecting.py - Bronze DAG → Bronze ingestion: runs next
dags/dag1_Collecting.py - Article scraper → VOI.id: requests pages
dags/script/main.py - Article scraper → Database connection: checks existing URLs
dags/script/main.py - Raw validation → Database connection: checks stored URLs
dags/script/validate_raw.py - Bronze ingestion → Database connection: opens connection
dags/script/save_raw.py - Bronze ingestion → PostgreSQL lakehouse: writes Bronze
README.md - Silver DAG → Silver transform: runs
dags/dag2_Processing.py - Silver transform → Database connection: opens connection
dags/script/preprocessing.py - Silver transform → PostgreSQL lakehouse: reads Bronze; writes Silver
README.md - Gold DAG → Silver source validation: runs first
dags/dag3_Warehouse.py - Gold DAG → Gold schema setup: runs next
dags/dag3_Warehouse.py - Gold DAG → Dimension loads: runs dimension loads
dags/dag3_Warehouse.py - Gold DAG → Fact load: runs after dimensions
dags/dag3_Warehouse.py - Gold DAG → Gold validation: runs next
dags/dag3_Warehouse.py - Gold DAG → Analytics views: runs last
dags/dag3_Warehouse.py - Silver source validation → PostgreSQL lakehouse: checks Silver
README.md - Gold schema setup → Database connection: uses connection
dags/script/gold_warehouse.py - Dimension loads → Database connection: uses connection
dags/script/gold_warehouse.py - Fact load → Database connection: uses connection
dags/script/gold_warehouse.py - Gold validation → Database connection: uses connection
dags/script/gold_warehouse.py - Analytics views → Database connection: uses connection
dags/script/gold_warehouse.py - Dimension loads → PostgreSQL lakehouse: writes dimensions
README.md - Fact load → PostgreSQL lakehouse: reads Silver; writes facts
README.md - Analytics views → PostgreSQL lakehouse: creates analytics views
dags/script/gold_warehouse.py