📦

Commerce

Inventory Management

The systems that track, manage, and optimise stock across warehouses, stores, and supply chains — from Zepto's dark store 10-minute delivery to Flipkart's 30+ fulfilment centres and FMCG distributor networks.

₹10L Cr

India Retail Inventory

10 min

Quick Commerce Promise

30M+ SKUs

Amazon India Catalog

15–25%

Inventory Carrying Cost

Understanding Inventory Management— A Developer's Domain Guide

Inventory Management is the process and technology for tracking goods from supplier to customer — knowing what's in stock, where it is, and when to replenish it. A WMS (Warehouse Management System) manages physical warehouse operations (receiving, putaway, picking, packing, shipping). An IMS (Inventory Management System) tracks stock quantities and values across all locations. Demand forecasting and replenishment algorithms ensure shelves are never empty (stockout) or over-full (deadstock). India's e-commerce explosion has made inventory management a core engineering challenge — with Meesho, Flipkart, and Amazon running millions of SKUs across distributed fulfilment networks.

Why Inventory Management Domain Knowledge Matters for Engineers

  • 1Every e-commerce, retail, and FMCG company needs inventory engineers — massive job market
  • 2Quick commerce (Zepto, Blinkit, Swiggy Instamart) is an inventory management engineering problem at its core
  • 3Flipkart, Amazon India, Meesho — all have dedicated supply chain / inventory engineering teams
  • 4Demand forecasting ML is one of the most impactful ML applications in industry
  • 5Multi-echelon inventory optimisation is a complex operations research problem with high ROI
  • 6Inventory accounting (FIFO, LIFO, WACC) is critical for finance and tax — every CA and finance team cares

How Inventory Management Organisations Actually Operate

Systems & Architecture — An Overview

Enterprise Inventory Management platforms are composed of a set of core systems, data platforms, and external integrations. For a detailed, interactive breakdown of the core systems and the step-by-step business flows, see the Core Systems and Business Flows sections below.

The remainder of this section presents a high-level architecture diagram to visualise how channels, API gateway, backend services, data layers and external partners fit together. Use the detailed sections below for concrete system names, API examples, and the full end-to-end walkthroughs.

Technology Architecture — How Inventory Management Platforms Are Built

Modern Inventory Managementplatforms follow a layered microservices architecture. The diagram below shows how a typical enterprise system in this domain is structured — from the client layer through the API gateway, backend services, data stores, and external integrations. This is the kind of architecture you'll encounter on real projects, whether you're building greenfield systems or modernising legacy platforms.

Inventory Management — High-Level System ArchitectureClient & Channel LayerWeb ApplicationMobile App (iOS/Android)Admin / Back-OfficePartner / B2B PortalThird-Party APIsBatch / Scheduled JobsAPI Gateway & Security LayerAuthentication · Rate Limiting · Routing · API Versioning · WAFCore Domain Microservices🏗️ Warehouse Manageme…Inbound receiving — PO-bas…Putaway direction — optima…POST /api/v1/receipts📊 Inventory Manageme…Real-time stock balance ac…Safety stock calculationGET /api/v1/stock/{skuId}🔮 Demand Forecasting…Time-series forecasting (A…ML-based demand forecastin…POST /api/v1/forecast/gener… Dark Store / Quick…Real-time bin-level stock …10-minute order picking flowGET /api/v1/store/{storeId…🔄 Multi-Channel Inve…Unified inventory pool acr…Channel-wise stock allocat…GET /api/v1/inventory/unif…Data & Event Streaming LayerPostgreSQL / MySQLRedisEvent Bus (Kafka)Document Store (S3)Analytics / BIExternal Integrations & PartnersERP (PO / SO)TMS (carrier boo…OMS (order feed)Robotics (AMR/co…Barcode / RFID s…WMS (physical st…Cloud Infrastructure: AWS (S3, RDS, Lambda, SQS) · Google Cloud (BigQuery + Vertex AI) · Azure· Container Orchestration · CI/CD Pipeline · Monitoring & ObservabilityCross-Cutting: Authentication (OAuth2/JWT) · Audit Logging · Encryption (TLS/AES) · Regulatory Compliance↑ Requests flow top-down · Events propagate via message bus · Data persisted in domain-specific stores ↓

End-to-End Workflows

Detailed, step-by-step business flow walkthroughs are available in the Business Flows section below. Use those interactive flow breakouts for exact API calls, system responsibilities, and failure handling patterns.

Industry Players & Real Applications

🇮🇳 Indian Companies

Flipkart (Ekart)

E-commerce / Fulfilment

Java, Go, Kafka, Cassandra

30+ FCs in India — highly custom WMS and inventory system

Amazon India

E-commerce / Fulfilment

AWS, Java, custom WMS

Amazon's own WMS (SLAM) deployed at scale in India

Zepto

Quick Commerce

Go, Python, PostgreSQL

Dark store inventory optimisation — 10-min delivery promise

Blinkit (Zomato)

Quick Commerce

Go, Python, ML

AI-driven store-level demand forecasting for 2,000+ dark stores

Delhivery

3PL / WMS

Java, Go, Kafka

3PL WMS managing inventory for hundreds of D2C brands

Unicommerce

Multi-channel IMS SaaS

Java, MySQL, AWS

India's leading multi-channel inventory management for SMEs

Increff

Inventory Optimisation

Python, Java, ML

AI-based assortment planning and inventory allocation for fashion retail

🌍 Global Companies

Amazon (global WMS)

USA

Fulfilment Tech

AWS, Java, custom

Kiva robots, SLAM system — most advanced warehouse automation

Walmart

USA

Retail / Supply Chain

Java, custom WMS, ML

Massive demand forecasting — pioneered vendor-managed inventory (VMI)

Manhattan Associates

USA

WMS Vendor

Java, cloud

Leading enterprise WMS used by Target, Macy's, many retail chains

Blue Yonder (JDA)

USA

Supply Chain Planning

Java, ML, SaaS

AI-driven demand forecasting and replenishment planning

🛠️ Enterprise Platform Vendors

SAP Extended Warehouse Management (EWM)

WMS / ERP

Enterprise WMS integrated with SAP ERP — complex putaway, picking, slotting strategies

Manhattan Active WM

WMS

Cloud-native WMS for large retail and 3PL — labour management, robotics integration

Oracle WMS Cloud

WMS

Cloud WMS with strong ERP integration — 3PL billing, cross-docking

Unicommerce

Multi-channel IMS

India-specific multi-channel IMS — Shopify, Myntra, Amazon, Flipkart integration

Core Systems

These are the foundational systems that power Inventory Management operations. Understanding these systems — what they do, how they integrate, and their APIs — is essential for anyone working in this domain.

Business Flows

Key Business Flows Every Developer Should Know.Business flows are where domain knowledge directly impacts code quality. Each flow represents a real business process that your code must correctly implement — including all the edge cases, failure modes, and regulatory requirements that aren't obvious from the happy path.

The detailed step-by-step breakdown of each flow — including the exact API calls, data entities, system handoffs, and failure handling — is covered below. Study these carefully. The difference between a developer who “knows the code” and one who “knows the domain” is exactly this: the domain-knowledgeable developer reads a flow and immediately spots the missing error handling, the missing audit log, the missing regulatory check.

Technology Stack

Real Industry Technology Stack — What Inventory Management Teams Actually Use. Every technology choice in Inventory Managementis driven by specific requirements — reliability, compliance, performance, or integration capabilities. Here's what you'll encounter on real projects and, more importantly, why these technologies were chosen.

The pattern across Inventory Management is consistent: battle-tested backend frameworks for business logic, relational databases for transactional correctness, message brokers for event-driven workflows, and cloud platforms for infrastructure. Modern Inventory Managementplatforms increasingly adopt containerisation (Docker, Kubernetes), CI/CD pipelines, and observability tools — the same DevOps practices you'd find at any modern tech company, just with stricter compliance requirements.

⚙️ backend

Java / Spring Boot

Enterprise WMS, ERP integration, multi-channel IMS — Unicommerce, Manhattan, SAP EWM

Go (Golang)

High-throughput order processing, real-time stock reservation, dark store systems (Zepto, Blinkit)

Python

Demand forecasting ML (Prophet, LightGBM, LSTM), inventory optimisation algorithms, analytics

Node.js

Marketplace integrations (Flipkart/Amazon APIs), webhook handling, real-time stock push

🖥️ frontend

React / Next.js

Warehouse manager dashboards, replenishment portals, multi-channel IMS admin

React Native / Android

RF scanner apps for warehouse associates — WMS mobile apps

Grafana / Tableau

Inventory KPI dashboards — stockout rate, fill rate, days of cover, OEE

🗄️ database

PostgreSQL / MySQL

Transactional inventory data — stock balances, transactions, orders

Redis

Real-time stock reservation cache — prevents oversell across concurrent orders

Apache Kafka

Stock transaction events, order events, replenishment triggers — event-driven IMS

Cassandra / DynamoDB

High-volume inventory event log — billions of stock movements at Flipkart/Amazon scale

Elasticsearch

SKU search, warehouse location search, inventory analytics

☁️ cloud

AWS (S3, RDS, Lambda, SQS)

Flipkart, Delhivery, Zepto — event-driven inventory with Lambda triggers

Google Cloud (BigQuery + Vertex AI)

Demand forecasting model training, inventory analytics warehouse

Azure

Enterprises running SAP EWM on Azure — integrated with S/4HANA

Interview Questions

Q1.How would you design a real-time inventory reservation system to prevent overselling across 10 marketplaces?

The core challenge: multiple channels placing orders concurrently against the same stock. Race condition can lead to oversell. Solution: 1) Unified inventory pool with channel buffers: Each channel gets a 'soft allocation' (e.g., Amazon channel buffer = 100 units of SKU X). Order above buffer requires a real-time check against shared pool. 2) Redis for real-time reservation: On order receipt, DECR command on Redis counter (atomic). If result ≥ 0, reservation succeeds. If < 0, increment back and reject. Redis ensures atomic, sub-millisecond reservation at high concurrency. 3) Order state machine: RESERVED → CONFIRMED → FULFILLED → SHIPPED. Each state change emits a Kafka event. 4) Reconciliation job: Every hour, compare Redis (reserved) vs DB (confirmed orders) — fix any drift. 5) Channel stock push: After each reservation, recalculate available qty per channel and push to marketplace via API. Delay = ~5 min. Buffer prevents oversell during the delay window. Scale: Flipkart handles 5M+ orders/day = ~58 orders/sec average. Peak = 10x. Redis easily handles 100k ops/sec.

Q2.What is the difference between FIFO, LIFO, and WACC inventory valuation?

FIFO (First In, First Out): Oldest stock consumed first. During inflation, FIFO gives lower COGS (old cheaper stock used) → higher profit → higher taxes. Inventory on balance sheet = recent (higher) prices. Used in most perishable goods. LIFO (Last In, First Out): Newest stock consumed first. Higher COGS during inflation → lower profit → tax advantage. Not permitted under IFRS (India follows Ind AS = IFRS-based) — only allowed under US GAAP. WACC (Weighted Average Cost): Each stock movement uses an updated average cost = Total inventory value / Total quantity. Simpler to maintain. Smooths out price fluctuations. Most common in India for non-perishable goods under Ind AS. System implications: WMS/ERP must track lot/batch costs for FIFO. WACC is simpler — just maintain unit cost and update on every receipt. Pharma and food typically FEFO (First Expired, First Out) — variant of FIFO but based on expiry date, not receipt date.

Q3.How does demand forecasting work and what metrics measure forecast quality?

Forecasting process: 1) Baseline statistical model: Time-series models on historical sales — ARIMA, ETS (Exponential Smoothing), or ML (LightGBM). 2) Causal adjustments: Add promotions, events, seasonality, price changes as features. 3) New product: Attribute-based similarity forecasting — find similar existing products and map their lifecycle. 4) Consensus: Final forecast = statistical baseline + planner override. Key accuracy metrics: MAPE (Mean Absolute Percentage Error): |Actual - Forecast| / Actual × 100%. Simple and intuitive but undefined when actual = 0. WAPE (Weighted Absolute Percentage Error): Sum(|Actuals - Forecasts|) / Sum(Actuals). Handles zero-demand items better. Bias: Avg(Forecast - Actual). Positive bias = consistently over-forecasting → excess stock. Negative bias = under-forecasting → stockouts. MASE (Mean Absolute Scaled Error): Scales error against naive forecast. Good for comparing across SKUs. World-class MAPE for FMCG: ~15–20%. For fashion (long lead time, high volatility): ~30–40% still acceptable. Key insight: Forecasting accuracy decreases at lower aggregation levels (store × SKU level harder to forecast than national level).

Q4.Explain multi-echelon inventory optimisation and why it's better than single-location safety stock.

Single-location safety stock: Each node (DC, store) independently calculates its own safety stock based on its own demand variability and supplier lead time. Problem: Each node buffers against uncertainty independently → total system inventory = sum of all buffers → massive over-stocking. Bullwhip effect: Small demand fluctuations amplify as you go upstream in the supply chain — store sees +10% demand spike → DC buffers +20% → factory plans +40%. Multi-echelon inventory optimisation: Models the entire supply chain as a system. Optimises total system inventory while meeting service level targets. Key insight: Inventory held upstream (DC) can serve multiple downstream nodes (stores) → pooling effect reduces total required inventory. Safety stock formula accounts for both demand variability at each node and the uncertainty of replenishment from upstream. Tools: Blue Yonder, SAP IBP, Llamasoft (now Coupa). In practice: Amazon, Walmart use sophisticated multi-echelon models. A 3-echelon model (supplier → DC → store) can reduce total inventory 20–30% vs single-echelon while maintaining the same service level.

Q5.How would you design dark store inventory management for a 10-minute delivery app?

Constraints: 2,000–3,000 SKUs in a 2,000 sq ft dark store; 10-min delivery = pick time < 2 min; high perishable content. System design: 1) Store layout: ABC slotting — top 20% SKUs (A-class) at front bins (fastest to pick). Perishables in temp-controlled zones. Smart bin assignment minimises picker travel. 2) Real-time stock: Every item tracked at bin level with RFID or barcode. Stock updates on every order pick. Zero tolerance for phantom inventory — causes delivery failure. 3) Hyperlocal demand forecasting: ML model per store × SKU × hour-of-day. Monday 8pm ≠ Tuesday 8pm ≠ Sunday 8pm. Training data: past orders + weather + events (IPL match → beer demand spike). 4) Replenishment from mother warehouse: When bin stock < safety stock (e.g., 2 units), auto-trigger replenishment. Mother warehouse dispatches to dark store on intraday cycle (every 3–4 hours). 5) Availability on app: When stock = 0, item shows 'Out of Stock' immediately. This is critical — better to show OOS than fail delivery. 6) Expiry management: FEFO picking logic. Items expiring today flagged for markdown / donation. 7) Wastage tracking: Perishables wasted recorded for P&L and forecast model feedback.

Glossary & Key Terms

WMS

Warehouse Management System — controls physical operations inside a warehouse

IMS

Inventory Management System — tracks stock quantities and values across all locations

SKU

Stock Keeping Unit — unique identifier for a specific product variant (size, colour, style)

ROP

Reorder Point — stock level at which a replenishment order must be triggered

EOQ

Economic Order Quantity — optimal order size that minimises total ordering + holding costs

Safety Stock

Buffer inventory held to protect against demand variability and supply uncertainty

FIFO

First In First Out — oldest inventory consumed first; required for perishables

FEFO

First Expired First Out — items with earliest expiry date picked first; used in pharma and food

WACC

Weighted Average Cost — inventory valuation using running average cost per unit

Cycle Count

Continuous partial physical inventory counting — count a portion of warehouse each day/week

ASN

Advance Shipment Notice — supplier notification of incoming delivery before it arrives

Pick Wave

Batch of orders released simultaneously to the warehouse floor for efficient picking

Slotting

Optimising bin locations for SKUs based on velocity, weight, size, and picking frequency

Days of Cover

Current stock / average daily demand — how many days until stockout

Fill Rate

% of customer orders fulfilled from stock without delay — key service level metric

3PL

Third-Party Logistics — outsourced warehousing and fulfilment (Delhivery, Ecom Express)