India’s Leading Domain & Web Hosting Provider

  • Chat
    Live Chat 24 X 7 online support
  • Contact NTSPL Hosting support
    Call Now +91 - 8260003333
AWSQuick-commerce groceryRetail, E-commerce & Consumer

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

Amazon Web Services
01

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
02

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.

Customer app orders → EKS microservices → Kinesis Data Streams → Data Firehose → S3 Iceberg tables → Glue hourly store-SKU models → Redshift Serverless (plus zero-ETL from Aurora) → Quick Sight planner dashboards
Amazon Kinesis Data StreamsAmazon Data FirehoseAmazon S3Amazon Redshift ServerlessAWS GlueAmazon AthenaAmazon Quick Sight
03

Implementation approach

Weeks 1-2 · Event contractAgreed event schemas for order, pick, inventory adjustment and wastage events with the platform teams.
Weeks 3-6 · Streaming and zero-ETLBuilt Kinesis and Firehose ingestion and enabled Redshift zero-ETL from Aurora for master data.
Weeks 7-9 · Hourly demand modelsBuilt hourly store-SKU demand, availability and wastage tables and validated them against store audits.
Weeks 10-11 · Planner dashboardsReleased stock-out projection dashboards and changed replenishment to two waves per day for top SKUs.
04

Measured results

Top-300 SKU stock-out rate (order lines)
About 7%→About 3.2%
Perishable wastage
About 4.5% of perishable sales→About 3.1%
Data freshness for planners
Next day→About 10 minutes
Analytics load on Aurora read replica
Throttled at peaks→Removed; replica decommissioned

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
05

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.

06

Return on investment

ROI indicator

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.

Illustrative scenario: a composite based on typical NTSPL engagement patterns for this industry and service. It does not describe a named customer. The figures are indicative, and actual results depend on the workload, its scale and the commercial terms.