India’s Leading Domain & Web Hosting Provider
Quick-commerce grocer cuts dark-store stock-outs with hourly SKU demand analytics
Quick-commerce grocery platform, 180 dark stores, about 6,500 active SKUs · Six metro cities in India · 11 weeks
As-is situation
Orders, inventory movements and rider events flowed through Aurora PostgreSQL and a set of microservices on EKS. Analysts ran demand queries against an Aurora read replica, which buckled during evening peaks and was throttled to protect checkout. Replenishment planners used day-level averages per city, so dark stores ran out of milk, bread and fruit by 8 p.m. while overstocking slower SKUs. Stock-outs on the top 300 SKUs averaged about 7 percent of order lines, and perishable wastage ran at about 4.5 percent of perishable sales. The data team of six spent most of its time exporting CSVs.
- Read-replica queries throttled during peaks, delaying analysis by up to a day
- Planning at city-day level while demand varied 5x across hours and stores
- Top-300 SKU stock-out rate of about 7 percent of order lines
- Perishable wastage of about 4.5 percent of perishable sales
Selected AWS services and architecture
NTSPL streamed order and inventory events from the microservices into Kinesis Data Streams in on-demand mode, with Data Firehose writing them to Iceberg tables in S3 every five minutes. Redshift zero-ETL integration replicated Aurora master data on stores, SKUs and suppliers. Glue jobs built hourly store-SKU demand, availability and wastage tables. Redshift Serverless hosted planner dashboards in Quick Sight showing projected stock-out hour per store and SKU, while Athena served analysts exploring promotions and weather effects. The curated hourly demand table also became the training input for a forecasting model built by the client's ML team.
Implementation approach
Measured results
Operational improvements
- Planners see projected stock-out hour per store and SKU and trigger a second replenishment wave
- The data team moved from exporting CSVs to maintaining models, adding three new datasets in a month
- Checkout performance is no longer affected by analytics queries during evening peaks
Cost considerations
Kinesis on-demand mode was chosen because order volume swings sharply between weekday mornings and weekend evenings. Zero-ETL avoided building and running CDC pipelines for master data. Redshift Serverless maximum RPU was capped, and Quick Sight SPICE served the most-viewed planner datasets to limit warehouse load.
Return on investment
Recovered sales from fewer stock-outs and lower wastage are worth an indicative INR 8 to 14 crore a year at current order volume. Platform run cost is about INR 3 to 4.5 lakh per month, and decommissioning the analytics read replica saved roughly INR 1.2 lakh a month.