How razaka8/data-lakehouse-iceberg works
This repository presents an e-commerce analytics lakehouse: data from PostgreSQL, files, and an order API is intended to be ingested through Spark into Iceberg Bronze, refined in Silver, then aggregated in Gold for analytics. The sampled API code confirms order/statistics endpoints backed by PostgreSQL; the README documents the broader Spark/MinIO/Iceberg workflow. The notebook and infrastructure definitions were not sampled, so pipeline links beyond documented stages are based on README descriptions.
Main entry points: 00_complete_pipeline.ipynb Spark Ingestion · main.py Orders API · init.sql PostgreSQL Sources · files Files
Components 11
Data Sources
- PostgreSQL Sources
sources/postgres/init.sql - Files
sources/files
Order API
- Orders API
sources/api/main.py - API PostgreSQL
sources/api/init_db.sql
Lakehouse Processing
- Spark Ingestion
notebooks/00_complete_pipeline.ipynb - Bronze Tables
notebooks/00_complete_pipeline.ipynb - Silver Refinement
notebooks/00_complete_pipeline.ipynb - Gold Aggregation
notebooks/00_complete_pipeline.ipynb - Iceberg Storage
notebooks/00_complete_pipeline.ipynb
Other components
- API Consumer
- Analytics Users
Connections 10
- API PostgreSQL → Orders API: queries orders
sources/api/main.py - API Consumer → Orders API: requests orders
sources/api/main.py - PostgreSQL Sources → Spark Ingestion: ingests JDBC
README.md - Files → Spark Ingestion: ingests files
README.md - Orders API → Spark Ingestion: serves orders
README.md - Spark Ingestion → Bronze Tables: writes raw
README.md - Bronze Tables → Silver Refinement: cleans and joins
README.md - Silver Refinement → Gold Aggregation: aggregates
README.md - Spark Ingestion → Iceberg Storage: writes tables
README.md - Analytics Users → Gold Aggregation: queries metrics
README.md