How khanh2802/customer360-banking-lakehouse works
This is a retail-banking Customer 360 lakehouse: synthetic operational data is ingested into Bronze, conformed into Silver, and transformed into Gold analytics, with a masked mart served to analysts through Trino and a Streamlit dashboard. Airflow orchestrates ETL and operational jobs. The graph preserves the documented segmentation, campaign, cohort, profile, and pipeline-health capabilities. Some ETL and dashboard links are based on README or source-index references; unsampled implementations are not assumed to show additional calls.
Main entry points: app.py Streamlit app · utils.py Trino query utilities · ingestion_jdbc.py Bronze JDBC ingestion · dags Airflow orchestration
Components 22
Data generation
- Synthetic data generator
data_generator/loaders/sql_runner.py
Lakehouse pipeline
- Airflow orchestration
airflow/dags - Bronze JDBC ingestion
code_etl/bronze/base_job/ingestion_jdbc.py - Silver conformance
code_etl/silver/base_job - Gold marts and analytics
code_etl/gold/base_job/gold_job.py - PII masking
code_etl/shared/ops/pii_masking.py
Analytics serving
- Trino SQL serving
Streamlit dashboard
- Streamlit app
dashboard/app.py - Trino query utilities
dashboard/utils.py - Overview and EDA
dashboard/views/overview.py - RFM and geography
dashboard/views/rfm_geo.py - Cohort analysis
dashboard/views/cohort.py - Customer profile
dashboard/views/customer_profile.py - Campaign targeting
dashboard/views/campaign.py - Cross-sell opportunities
dashboard/views/cross_sell.py - Pipeline health
dashboard/views/ops_health.py - Mock data fallback
dashboard/mock_data.py
Other components
- Marketing / analysts
- Oracle core banking
- PostgreSQL card + CRM
- Iceberg lakehouse
- Power BI reports
Connections 32
- Synthetic data generator → Oracle core banking: seeds data
- Synthetic data generator → PostgreSQL card + CRM: seeds data
- Oracle core banking → Bronze JDBC ingestion: JDBC ingest
- PostgreSQL card + CRM → Bronze JDBC ingestion: JDBC ingest
- Airflow orchestration → Bronze JDBC ingestion: orchestrates
- Airflow orchestration → Silver conformance: orchestrates
- Airflow orchestration → Gold marts and analytics: orchestrates
- Bronze JDBC ingestion → Iceberg lakehouse: writes raw tables
code_etl/bronze/base_job/ingestion_jdbc.py - Silver conformance → Iceberg lakehouse: writes conformed data
- Gold marts and analytics → Iceberg lakehouse: writes marts
- Gold marts and analytics → PII masking: provides customer mart
- PII masking → Iceberg lakehouse: writes masked copy
- Iceberg lakehouse → Trino SQL serving: serves SQL
- Trino SQL serving → Marketing / analysts: enables self-service queries
- Trino SQL serving → Power BI reports: serves reports
- Streamlit app → Overview and EDA: routes to
dashboard/app.py - Streamlit app → RFM and geography: routes to
dashboard/app.py - Streamlit app → Cohort analysis: routes to
dashboard/app.py - Streamlit app → Customer profile: routes to
dashboard/app.py - Streamlit app → Campaign targeting: routes to
dashboard/app.py - Streamlit app → Cross-sell opportunities: routes to
dashboard/app.py - Streamlit app → Pipeline health: routes to
dashboard/app.py - Overview and EDA → Trino query utilities: queries through
dashboard/views/overview.py - RFM and geography → Trino query utilities: queries through
dashboard/views/rfm_geo.py - Cohort analysis → Trino query utilities: queries through
dashboard/views/cohort.py - Customer profile → Trino query utilities: queries through
dashboard/views/customer_profile.py - Campaign targeting → Trino query utilities: queries through
dashboard/views/campaign.py - Cross-sell opportunities → Trino query utilities: queries through
dashboard/views/cross_sell.py - Pipeline health → Trino query utilities: queries through
- Trino query utilities → Trino SQL serving: runs SQL
dashboard/utils.py - Customer profile → Mock data fallback: falls back to
dashboard/views/customer_profile.py - Marketing / analysts → Streamlit app: uses dashboard