Commerce
Supply Chain & Logistics
Warehouse management, last-mile delivery, freight, and logistics tech — the systems behind Delhivery, Blue Dart, Amazon Logistics, and India's $215B+ logistics industry.
$215B+
India Logistics Market
10 Min
Quick Commerce SLA
1.2B+
Shipments/Year
₹1.5L Cr
Govt GatiShakti Budget
Understanding Supply Chain & Logistics— A Developer's Domain Guide
Supply Chain & Logistics technology covers the full spectrum of systems that move goods from manufacturer to consumer — from warehouse management systems (WMS) that direct pickers inside fulfilment centres, to transport management systems (TMS) that plan routes for thousands of vehicles, to last-mile delivery platforms that coordinate gig-economy riders in real time. India's logistics sector is undergoing a massive transformation: Delhivery is the first tech-first logistics unicorn, Amazon has built one of the world's most sophisticated sortation networks in India, and quick commerce (Blinkit, Zepto) has pushed last-mile SLAs to 10 minutes. The National Logistics Policy (2022) and the PM GatiShakti platform are digitising freight infrastructure at scale.
Why Supply Chain & Logistics Domain Knowledge Matters for Engineers
- 1India's logistics market is $215B+ and growing at 10%+ CAGR — massive technology investment
- 2Delhivery, Ecom Express, Shadowfax, Porter are high-growth tech companies with aggressive hiring
- 3Amazon, Flipkart, Meesho all run proprietary logistics networks — thousands of engineering roles
- 4Quick commerce (10-minute delivery) is an Indian innovation solving extreme logistics complexity
- 5Supply chain disruption (COVID, wars) has made SCM a board-level priority — tech investment surging
- 6Route optimisation, warehouse automation, and predictive ETA are hot areas combining ML + systems
How Supply Chain & Logistics Organisations Actually Operate
Systems & Architecture — An Overview
Enterprise Supply Chain & Logistics 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 Supply Chain & Logistics Platforms Are Built
Modern Supply Chain & Logisticsplatforms 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.
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
Delhivery
3PL / Tech Logistics
Python, Go, AWS
India's first logistics unicorn — 18,000+ pincodes, own WMS and TMS
Blue Dart (DHL)
Express Courier
Java, SAP
Premium express — DHL India, air freight, COSMAT platform
DTDC / Ecom Express
E-commerce Logistics
Java, microservices
E-commerce focused last-mile and fulfilment
Shadowfax
Last-Mile Platform
Python, Golang, AWS
Hyperlocal and same-day delivery — Flipkart, Meesho partner
Porter
Intra-city Logistics
React Native, Go, AWS
On-demand mini-truck and two-wheeler logistics — 200K+ fleet
Rivigo
FTL Trucking Tech
Java, Python, ML
Relay trucking model — drivers never away from home
Amazon Logistics (AMZL)
Captive Logistics
Java, AWS, robotics
Amazon's own last-mile — 1,000+ delivery stations in India
Flipkart Ekart
Captive Logistics
Java, Kotlin
Flipkart's last-mile and fulfilment network
🌍 Global Companies
UPS / FedEx
USAGlobal Express
Java, mainframe, ML
World's largest logistics companies — parcel and freight
Amazon Logistics (Global)
GlobalCaptive + 3PL
AWS, robotics, ML
Kiva robots in warehouses, Alexa-guided picking
DHL Supply Chain
GermanyContract Logistics
SAP EWM, custom WMS
World's largest logistics company by revenue
Maersk
DenmarkOcean + Supply Chain
Java, cloud, IoT
World's largest container shipping line — digitising trade lanes
C.H. Robinson (Navisphere)
USAFreight Brokerage
Java, ML, cloud
World's largest freight broker — Navisphere TMS platform
🛠️ Enterprise Platform Vendors
SAP EWM / TM
WMS / TMS
SAP Extended Warehouse Management and Transportation Management — enterprise standard
Manhattan Associates
WMS / OMS
Leading WMS and supply chain execution platform — used by Flipkart, large retailers
Oracle SCM Cloud
SCM Suite
End-to-end supply chain planning and execution suite
Blue Yonder (JDA)
SCM Planning
Supply chain planning, demand forecasting, labour management
Core Systems
These are the foundational systems that power Supply Chain & Logistics 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 Supply Chain & Logistics Teams Actually Use. Every technology choice in Supply Chain & Logisticsis 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 Supply Chain & Logistics 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 Supply Chain & Logisticsplatforms 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 and TMS — SAP EWM, Manhattan, Delhivery's core systems
Python
Route optimisation (VRP), demand forecasting, ML for ETA prediction
Go (Golang)
High-throughput real-time dispatch engines, last-mile assignment, tracking APIs
Node.js
API gateways, webhook delivery, real-time driver location services
🖥️ frontend
React Native / Flutter
Delivery executive apps, driver apps, customer tracking apps
React / Next.js
Merchant portals, WMS desktop interfaces, control tower dashboards
Native Android / iOS
High-performance scan apps for warehouse workers (barcode, RFID)
🗄️ database
PostgreSQL / MySQL
Transactional core — orders, shipments, inventory records
MongoDB
Flexible event storage — shipment milestones, tracking events
Redis
Real-time inventory counts, DE location cache, rate limiting
Apache Kafka
Shipment event streaming — decoupled tracking, audit, analytics pipeline
Elasticsearch
Shipment search, operational dashboards, exception alerting
☁️ cloud
AWS
Delhivery, Shadowfax — EC2, SQS, DynamoDB, Lambda for event-driven processing
Google Cloud / Maps Platform
Route optimisation, ETA prediction, geocoding — Google Maps API is universal
Azure
Large enterprises with SAP on Azure — Blue Dart, DTDC back-office
IoT (GPS Telematics)
Vehicle GPS units, cold-chain temperature sensors, RFID at dock doors
Interview Questions
Q1.How does a WMS direct picking to minimise travel time in a warehouse?
A WMS uses several strategies to minimise picker travel (the largest cost in warehouse operations): 1) Wave planning — group orders going to the same carrier or zone into a 'wave' so a picker handles multiple orders in one pass. 2) Zone picking — divide warehouse into zones, each picker handles only their zone; orders assembled at pack station. 3) Batch picking — one picker collects items for N orders simultaneously using a multi-compartment cart. 4) Optimal pick path — within a zone, sort pick list by aisle-then-bin sequence (serpentine or return path depending on warehouse layout). 5) Slotting — fast-moving SKUs placed closest to pack station and at ergonomic height (golden zone). 6) Goods-to-person robotics (GreyOrange, Kiva) — robots bring shelves to stationary pickers, eliminating travel entirely. Modern WMS also uses ML to predict which orders will arrive together and pre-positions pickers.
Q2.Explain the Vehicle Routing Problem (VRP) and how it is solved for last-mile delivery.
VRP asks: given N delivery locations and K vehicles at a depot, find the optimal set of routes minimising total distance/time. It is NP-hard (no polynomial-time exact solution). Practical approaches: 1) Clarke-Wright Savings algorithm — merge routes that share a common savings value. 2) Genetic algorithms / simulated annealing — metaheuristic search. 3) Google OR-Tools — open-source combinatorial optimisation library widely used in industry. Real-world constraints add complexity: time windows (deliver between 10am–12pm), vehicle capacity (weight/volume), driver hours (labour law), traffic conditions (Google Maps API live data), priority orders (same-day vs next-day). Companies like Locus, FarEye, and Delhivery's internal TMS solve variants of VRP in near-real-time (seconds) for thousands of shipments using a combination of heuristics and ML-based warm starting.
Q3.How do you design a real-time shipment tracking system at scale (like Delhivery)?
Design components: 1) Event ingestion — scanning events pushed from barcode scanners at hubs, GPS pings from vehicles, DE app location updates. Use Kafka for high-throughput event streaming (millions of events/hour). 2) Event processing — stream processor (Kafka Streams / Flink) normalises events, resolves to shipment ID, applies milestone state machine (Picked Up → In Transit → At Hub → Out for Delivery → Delivered). 3) Storage — current status in Redis (O(1) lookup by AWB), full event history in Cassandra (append-only time-series). 4) Customer-facing tracking — React page polling /api/track/{awb} or WebSocket push. 5) ETA prediction — ML model taking current location, historical delivery time for that route, time-of-day, traffic — served via a low-latency feature store. 6) Exception detection — stream analytics job detects SLA breaches (no scan event in X hours), triggers alert via webhook to merchant. Scale challenge: Delhivery handles 1M+ active shipments daily — partition Kafka by AWB hash, shard Redis by AWB range.
Q4.What is OTIF and why is it the most important metric in logistics?
OTIF — On-Time In-Full — measures the percentage of orders delivered on time AND with the correct items and quantity. It is the single most critical logistics KPI because: 1) 'On Time' — delivery within promised SLA window; late delivery = poor customer experience, FMCG retailers penalise suppliers (Walmart charges a fine for OTIF breach). 2) 'In Full' — complete order without short-shipments or substitutions; partial delivery = incorrect inventory at customer, order re-processing cost. Calculation: OTIF % = (Orders delivered on time AND in full) / Total orders × 100. Industry benchmarks: B2C e-commerce: 95%+ OTIF expected; FMCG modern trade: 97%+; quick commerce: 99%+. Root causes of OTIF failure: inventory stockouts, warehouse processing delays, carrier failures, address quality issues, route planning errors. WMS, TMS, and demand planning systems all directly contribute to improving OTIF.
Q5.How does demand forecasting work in a supply chain, and what models are used?
Demand forecasting predicts future sales to drive inventory and replenishment decisions. Approaches by complexity: 1) Statistical models (baseline): Moving Average — average of last N weeks; Exponential Smoothing (Holt-Winters) — weighted average giving more weight to recent data, handles seasonality and trend. 2) Causal models: Add external factors — promotions, price changes, weather, events (e.g., Diwali spike). Regression-based. 3) ML models (modern): XGBoost / LightGBM — tabular features: historical sales, price, promotions, day-of-week, holidays, competitor events. 4) Deep learning: LSTM / Temporal Fusion Transformer — for complex multi-variate time series. Challenges: new product introduction (no history), long-tail SKUs (sparse data), cannibalization (new product eats existing SKU sales), promotional uplift quantification. In practice, most large retailers use a hierarchy: ML model for top SKUs, statistical for mid-tail, min-max reorder for long-tail.
Glossary & Key Terms
WMS
Warehouse Management System — software directing all movement and storage of goods inside a warehouse
TMS
Transport Management System — plans, executes, and tracks freight movement from origin to destination
3PL
Third-Party Logistics — outsourced logistics provider handling warehousing and/or delivery (Delhivery, Blue Dart)
Last Mile
Final leg of delivery from local hub to customer doorstep — most expensive part of logistics
Dark Store
Small urban warehouse serving only delivery orders; not open to walk-in customers (Blinkit, Zepto)
VRP
Vehicle Routing Problem — optimisation problem of assigning routes to vehicles for N deliveries
OTIF
On-Time In-Full — KPI measuring % of orders delivered on time and with correct items/quantity
GRN
Goods Receipt Note — document confirming receipt of goods at warehouse against a purchase/transfer order
AWB
Airway Bill — shipment tracking number (used for all modes, not just air)
POD
Proof of Delivery — confirmation that shipment was delivered (OTP, signature, or photo)
RTO
Return to Origin — undelivered shipment sent back to seller/warehouse
ASRS
Automated Storage and Retrieval System — robotic shelving system in advanced warehouses
DOS
Days of Supply — how many days current stock will last at current sales rate
S&OP
Sales & Operations Planning — monthly cross-functional process aligning supply with demand
FTL / LTL
Full Truck Load / Less Than Truck Load — freight modes for full vs partial truck capacity bookings
Linehaul
Long-distance transport of consolidated goods between fulfilment centre and delivery hub