← back to case filesCASE FILE · 08 / 09
Swiggy Market Intelligence product screenshot
product snapshot ↗
LOGISTICS · REAL-TIME ANALYTICS

Swiggy Delivery Analytics

Real-time analytics and intelligence platform for Swiggy to monitor deliveries, predict ETAs, and optimize operations across cities.

Stack

DATA ENGINEERING
PythonPySparkKafkaAirflowPostgreSQLRedis
ML / ANALYTICS
Scikit-learnXGBoostProphetGeoPandasFolium
BACKEND
FastAPIUvicornWebSockets
FRONTEND
ReactTypeScriptRechartsMapbox GL JS
DEPLOYMENT
DockerAWS (EC2, S3, RDS)NginxGitHub Actions

The Problem

Last-mile delivery is affected by traffic, demand spikes, and partner availability. Swiggy needed real-time visibility and predictive insights to improve on-time deliveries.

What I Built

An end-to-end analytics platform with real-time dashboards, ETA prediction, demand heatmaps, and delay analysis to help operations teams make faster decisions.

The Difference

Real-time streaming + ML-powered ETA prediction + geospatial intelligence in a single platform for proactive operational optimization.

Numbers That Matter

2.4L+orders analyzed daily
89.7%on-time delivery achieved
-18%avg delivery time reduced
25+cities covered in platform
12K+delivery partners tracked

Engineering Notes ✎

01

Real-time Pipeline

Kafka + PySpark Streaming process millions of events per day with low latency and high reliability.

02

ETA Prediction

Gradient Boosted Trees model using traffic, distance, weather and historical patterns for accurate ETA prediction.

03

Geospatial Intelligence

Heatmaps and zone analytics help identify high-demand areas and optimize partner allocation in real time.

Architecture Overview

Data Sources• Order Events• GPS Pings• Restaurant Data• Traffic Data• Weather APIKafka(Streaming Ingestion)PySpark(Stream Processing)PostgreSQL(Operational Store)S3 Data Lake(Raw + Processed)ML Models• ETA Prediction• Demand Forecasting• Delay ClassificationRedis(Caching)FastAPI Backend(REST + WebSocket)React Dashboard(Analytics & Maps)Real-timedata flow →