Retail Sales Aggregation Pipeline with Kafka and PySpark
Retailers live and die by their numbers: daily sales by store, weekly trends by category, and the early signals of a product taking off or dying. Producing those numbers reliably from a continuous stream of transactions is a foundational data engineering task, and this project has the intern build the full pipeline behind it. Sales transactions are streamed through Kafka, simulating point-of-sale events flowing in from many stores. The events are stored in HDFS, establishing a durable record of every transaction, and scheduled PySpark batch jobs process the accumulated data to calculate daily and weekly sales summaries, category-level aggregates, and store comparisons. Python scripts manage the pipeline, coordinating ingestion, triggering batch runs, and exporting results as CSV files that a merchandising or finance team could pick up directly. The scope is strictly the data pipeline and its reports, keeping attention on correctness, idempotent processing, and clean output structure. The intern learns the streaming-to-batch architecture used across retail analytics, gains real PySpark aggregation experience, and finishes able to explain how raw transaction events become the numbers a business runs on.
Related projects
You might also like