How rkvarma4518/e-commerce-streaming-data-processing works
This repository generates e-commerce activity events and processes them through a Databricks medallion pipeline into analytics tables. The principal workflow is event generation and Kafka publication, raw Bronze ingestion, Silver parsing and validation, then five Gold star-schema outputs. Gold tables are shown as independent Silver-derived outputs: the sampled fact implementation selects dimension-like keys but does not read or join the dimension tables. Relationships are limited to those shown in excerpts or the README.
Main entry points: silver_events.py Silver Events · bronze_kafka.py Bronze Ingestion · ecommerce_producer.py Event Producer · dim_customers.py Customer Dimension
Components 9
Event Source
- Event Producer
ecommerce_producer.py
Medallion Pipeline
- Bronze Ingestion
pl_ecommerce_kafka_stream_ingestion/transformations/bronze/bronze_kafka.py - Silver Events
pl_ecommerce_kafka_stream_ingestion/transformations/silver/silver_events.py
Gold Analytics
- Customer Dimension
pl_ecommerce_kafka_stream_ingestion/transformations/gold/dim_customers.py - Event Type Dimension
pl_ecommerce_kafka_stream_ingestion/transformations/gold/dim_event_types.py - Product Dimension
pl_ecommerce_kafka_stream_ingestion/transformations/gold/dim_products.py - Time Dimension
pl_ecommerce_kafka_stream_ingestion/transformations/gold/dim_time.py - Engagement Fact
pl_ecommerce_kafka_stream_ingestion/transformations/gold/fact_engagement.py
Other components
- Kafka Topic
Connections 8
- Event Producer → Kafka Topic: publishes events
ecommerce_producer.py - Kafka Topic → Bronze Ingestion: streams from
pl_ecommerce_kafka_stream_ingestion/transformations/bronze/bronze_kafka.py - Bronze Ingestion → Silver Events: parses and validates
pl_ecommerce_kafka_stream_ingestion/transformations/silver/silver_events.py - Silver Events → Customer Dimension: derives customers
pl_ecommerce_kafka_stream_ingestion/transformations/gold/dim_customers.py - Silver Events → Event Type Dimension: derives event types
pl_ecommerce_kafka_stream_ingestion/transformations/gold/dim_event_types.py - Silver Events → Product Dimension: derives products
pl_ecommerce_kafka_stream_ingestion/transformations/gold/dim_products.py - Silver Events → Time Dimension: derives time
pl_ecommerce_kafka_stream_ingestion/transformations/gold/dim_time.py - Silver Events → Engagement Fact: builds fact rows
pl_ecommerce_kafka_stream_ingestion/transformations/gold/fact_engagement.py