How islamhasib953/retailpulse-enterprise-data-platform-edp- works
RetailPulse is an e-commerce data platform with parallel historical-batch and real-time-streaming workflows. Batch ingestion lands external sales and currency data in MinIO; Spark transforms it through Bronze, Silver, and Gold before loading PostgreSQL. Separately, generated orders flow through Kafka and Spark to Elasticsearch and a raw MinIO lake; Airflow later loads lake records into PostgreSQL, where dbt unifies live and batch sales. Kibana and Grafana provide search and dashboards. The README documents these integrations; some orchestration and visualization wiring is documented rather than visible in sampled application source.
Main entry points: batch_processing.py Spark batch · stream_processing.py Spark streaming · models dbt models · batch_ingest.py Bronze ingestion
Components 22
Batch analytics
- Batch schedule
dags/batch_pipeline.py - Bronze ingestion
src/ingestion/batch_ingest.py - Spark batch
src/processing/batch_processing.py - MinIO data lake
src/core/minio_client.py - Silver and Gold models
src/processing/batch_processing.py
Live orders
- Order generator
src/ingestion/stream_producer.py - Kafka topic
- Spark streaming
src/processing/stream_processing.py - Raw order lake
Warehouse and orchestration
- Lake load schedule
dags/daily_lake_to_dwh.py - Analytics schedule
dags/dbt_pipeline.py - dbt models
dbt_project/models - PostgreSQL warehouse
- Unified sales fact
dbt_project/models/fact_sales_unified.sql - Analytics dimensions
dbt_project/models/dim_top_countries.sql
Search and dashboards
- Elasticsearch
- Search index setup
src/core/es_setup.py - Order search
src/core/es_search_demo.py - Kibana discovery
- Grafana dashboards
grafana/provisioning
Shared configuration
- Runtime settings
src/config/settings.py
Other components
- Sales and FX APIs
Connections 27
- Batch schedule → Bronze ingestion: runs ingestion
dags/batch_pipeline.py - Batch schedule → Spark batch: runs processing
dags/batch_pipeline.py - Sales and FX APIs → Bronze ingestion: provides source data
README.md - Bronze ingestion → MinIO data lake: uploads Bronze
src/ingestion/batch_ingest.py - Spark batch → MinIO data lake: reads Bronze
src/processing/batch_processing.py - Spark batch → Silver and Gold models: transforms data
src/processing/batch_processing.py - Silver and Gold models → MinIO data lake: writes parquet
src/processing/batch_processing.py - Spark batch → PostgreSQL warehouse: loads fact sales
src/processing/batch_processing.py - Order generator → Kafka topic: publishes orders
src/ingestion/stream_producer.py - Kafka topic → Spark streaming: streams messages
src/processing/stream_processing.py - Spark streaming → Elasticsearch: indexes orders
src/processing/stream_processing.py - Spark streaming → Raw order lake: writes raw JSON
src/processing/stream_processing.py - Lake load schedule → Raw order lake: reads lake files
dags/daily_lake_to_dwh.py - Lake load schedule → PostgreSQL warehouse: inserts raw orders
dags/daily_lake_to_dwh.py - Analytics schedule → Lake load schedule: waits for load
dags/dbt_pipeline.py - Analytics schedule → Batch schedule: waits for batch
dags/dbt_pipeline.py - Analytics schedule → dbt models: runs models
dags/dbt_pipeline.py - dbt models → PostgreSQL warehouse: transforms tables
README.md - dbt models → Unified sales fact: builds unified fact
README.md - dbt models → Analytics dimensions: builds dimensions
README.md - Elasticsearch → Kibana discovery: serves discovery
README.md - PostgreSQL warehouse → Grafana dashboards: serves dashboards
README.md - Elasticsearch → Order search: answers searches
src/core/es_search_demo.py - Search index setup → Elasticsearch: creates index
src/core/es_setup.py - Bronze ingestion → Runtime settings: loads endpoints
src/ingestion/batch_ingest.py - Order generator → Runtime settings: loads broker config
src/ingestion/stream_producer.py - Spark streaming → Runtime settings: loads stream config
src/processing/stream_processing.py