Diagnosing a Metro-Wide Delivery Slowdown on Swiggy Instamart

Medium · Analytics & Experimentation · Product Manager · Other

Prompt

As the Product Manager responsible for fulfillment on Swiggy Instamart (Swiggy's rapid grocery delivery platform), you notice an alert on your weekly operations dashboard: beginning last week, fulfilled orders in one major Tier-1 metropolitan market have been averaging 10% above their target delivery duration. Initial cuts show the regression affects all basket and order categories rather than a single product vertical or basket size.

Walk through how you would investigate this anomaly end to end, isolate the underlying driver, and decide what actions to take.

Scope & Expectations

  • Metric & instrumentation sanity checks: Verify numerator vs. denominator behavior, aggregation formulas, timestamp definitions, and percentile shifts before attributing the movement to physical operations.
  • Structured funnel & segment decomposition: Break order fulfillment into non-overlapping operational milestones and slice by store, neighborhood, hour, and order mix to localize where extra minutes originate.
  • Internal vs. external hypothesis testing: Contrast platform changes (courier supply, dispatch/batching logic, dark-store throughput, radius expansion) against external disruptions (weather, traffic corridors, local events) and explain how data distinguishes them.
  • Action plan & guardrails: Propose immediate mitigations, longer-term fixes, and stage-level monitoring without gaming the benchmark metric.

Step-by-step walkthrough

  1. Validate the metric before hunting for operational causes

    Before blaming traffic, stores, or riders, verify that deliveries actually slowed down. "Averaging 10% above the target delivery duration" compares two numbers — actual delivery time (how many minutes the order really took) and target benchmark time (the promised ETA, short for estimated time of arrival, or internal SLA). Whenever a ratio moves, either the top number grew, the bottom number shrank, or the way they are combined changed:

    Scenario                        Last month   This week   Ratio (Actual / Expected)
    A. Real slowdown:
       Avg expected time (min)         15.00       15.00
       Avg actual time (min)           15.00       16.50     16.50 / 15.00 = 1.10 (+10%)
    
    B. Shrinking benchmark (illusion):
       Avg expected time (min)         15.00       13.64
       Avg actual time (min)           15.00       15.00     15.00 / 13.64 ≈ 1.10 (+10%)
    

    (All numbers in this walkthrough are illustrative examples.) Check four metric sanity items first:

    • Numerator vs. denominator separately: Does the target benchmark come from a dynamic ML prediction shown to buyers during checkout or a static internal SLA (such as 15 minutes)? Did a model retrain or SLA recalibration tighten the denominator last week while actual fulfillment minutes stayed flat?
    • Exact formula (ratio of averages vs. average of ratios): Check whether the dashboard reports mean(actual) / mean(expected) or mean(actual / expected). On a per-order ratio, a 2-minute delay on a short 10-minute promise (+20%) weighs twice as heavily as a 2-minute delay on a 20-minute promise (+10%).
    • Logging and instrumentation: Did a customer-app or rider-app release change when a timestamp fires (for example, marking "delivered" at the apartment door instead of at the building gate, or fixing dropped events)?
    • Distribution shape and seasonality: Compare P50 (the median, which half of orders beat) against P90 (the 90th percentile, exceeded by only the slowest 10% of orders). If P50 barely moved (15.0 to 15.2 min) while P90 jumped (22.0 to 30.0 min), a tail of severely delayed orders is pulling up the mean. Also compare against normal week-to-week variation and the same week last year (monsoon, local festivals, payday week).
  2. Narrow the search space using the scenario clues

    Once we confirm that actual minutes rose by +1.5 minutes (from 15.0 to 16.5 minutes), the scenario's core clues rule out entire families of causes right away:

    • Uniform across all basket categories (small 2-item snacks, full weekly groceries, fragile items, heavy beverages): Anything specific to one product category — a single supplier delay, cold-storage freezer placement, or heavy-crate packing — cannot slow small single-item orders too. The bottleneck must live in shared infrastructure that every order passes through: dark-store checkout/handover, rider supply, dispatch software, road traffic, weather, or logging. (A dark store is a small local warehouse laid out like a supermarket solely for pickers to pack online orders, closed to walk-in shoppers.)
    • Onset one week ago: Plot the daily and hourly time series first. A sudden step-change on Tuesday afternoon points to a discrete event (code deployment, rider payout change, road closure, sudden storm). A steady ramp over seven days points to gradual pressure (rider churn, rising order volume, creeping stock mismatches).
    • Scoped to one Tier-1 metro: A major metro has dozens of dark stores and hundreds of thousands of weekly orders, so a single broken store cannot move the city average by 10% unless its delay is catastrophic. Immediately compare this metro against peer Tier-1 markets:
    Does the slowdown appear in other Tier-1 cities too?
    ├── Yes (even if smaller) ──► Shared system cause: app/dispatch release, ETA model,
    │                             national rider-pay formula, national promo campaign
    └── No (only this city)   ──► Local city cause: local weather/waterlogging, city-specific
                                  rider incentives or churn, local traffic/events, local ops
    
  3. Decompose delivery time into additive stages

    An Instamart order travels through a strict sequence of physical milestones from checkout to doorstep. Because the mean of a sum equals the sum of the means (mean(A + B) = mean(A) + mean(B)), breaking every completed order into consecutive, non-overlapping timestamps makes the stage averages add up exact to total delivery time:

    Physical milestone stage                Last month   This week   Change   Share of +1.5
    1. Placed -> Store accepted                0.5          0.5        0.0         0%
    2. Accepted -> Packed (picking/packing)    3.0          3.2       +0.2        13%
    3. Packed -> Picked up by rider            2.5          3.7       +1.2        80%
       3a. Packed -> Rider assigned*           (1.0)        (1.4)     (+0.4)     (27%)
       3b. Assigned & packed -> Picked up*     (1.5)        (2.3)     (+0.8)     (53%)
    4. Picked up -> Arrived at building        8.0          8.1       +0.1         7%
    5. Arrived at building -> Delivered        1.0          1.0        0.0         0%
    ---------------------------------------------------------------------------------------
    Total actual delivery time (min)          15.0         16.5       +1.5       100%
    

    *How to split Stage 3 cleanly without double-counting: In quick commerce, dispatch often assigns a rider while the picker is still packing (t_assigned < t_packed). If you computed t_pickup - t_assigned directly, you would overlap with packing time and the stages would not add up to 16.5. Instead, split Stage 3 at t_ready = max(t_packed, t_assigned): - 3a (t_ready - t_packed): minutes a finished bag sits on the shelf with no rider assigned (0 if a rider was assigned before packing finished). - 3b (t_pickup - t_ready): minutes a finished, assigned bag waits for that rider to reach the store and scan pickup. Notice that (t_ready - t_packed) + (t_pickup - t_ready) = t_pickup - t_packed for every single order!

    In our illustrative table, 80% of the slowdown (+1.2 of +1.5 minutes) sits in Stage 3 (shelf-to-pickup handover), while road travel (+0.1) and doorstep handover (0.0) barely moved. Each stage points to a distinct owner: - Stage 1 (Acceptance): order-routing backend, store tablet connectivity. - Stage 2 (Picking & packing): picker headcount, store aisle congestion, inventory accuracy. - Stage 3 (Shelf wait for pickup): rider availability, dispatch/batching logic, store pickup counter queue. - Stage 4 (Travel): road traffic, rain/waterlogging, delivery distance radius. - Stage 5 (Doorstep): gated-society entry rules, address pin accuracy, cash/OTP collection.

  4. Segment by excess order-minutes and check for mix shift

    Next, slice the stage that grew across dark store, neighborhood zone, hour of day, day of week, delivery distance band, and single vs. batched orders (where one rider carries two nearby orders on one trip).

    When ranking stores or hours, rank by excess order-minutes (order_count × extra_minutes_per_order), not by raw delay alone, so a tiny store with a 10-minute hiccup does not distract from high-volume stores driving the city average:

    City total extra delay: 150,000 orders/week × 1.5 min = 225,000 excess order-minutes
    
    Pattern 1 (Concentrated):
      6 overloaded stores:   30,000 orders × +6.000 min = 180,000 excess order-min (80%)
      54 other stores:      120,000 orders × +0.375 min =  45,000 excess order-min (20%)
      -> Local bottleneck (flooding, roadwork, or rider shortage in one cluster of zones)
    
    Pattern 2 (Broadly spread):
      All 60 stores:        ~2,500 orders × +1.500 min each
      -> City-wide shift (city payout tweak, dispatch algorithm update, city-wide rain)
    

    At the same time, test for mix shift (also called Simpson's paradox, where the overall average changes purely because the share of slower segments grew, even though no individual segment got slower). Suppose short-radius orders always take 14 minutes and expanded long-radius orders always take 22 minutes:

    Last month (20% long trips):  0.80 × 14 + 0.20 × 22 = 11.2 + 4.4 = 15.6 min
    This week  (30% long trips):  0.70 × 14 + 0.30 × 22 =  9.8 + 6.6 = 16.4 min (+5.1%!)
    

    Every distance band stayed just as fast, yet the city average rose by 0.8 minutes! If the "expected standard" is a flat 15-minute benchmark rather than a distance-aware ETA, expanding dark-store delivery radii during peak hours will immediately inflate the actual-to-expected ratio.

  5. Match internal and external hypotheses to their data fingerprints

    List the candidate internal and external causes and match each one against the exact stage and segment pattern it predicts:

    Hypothesis                           Stage that grows        Expected segment pattern
    ---------------------------------------------------------------------------------------------
    INTERNAL
    1. ETA model / target tightened      None (actual is flat)   Step change on model release day
    2. Timestamp logging changed         One boundary jumps,     Step change on app version update;
                                         adjacent one may dip    only new app version affected
    3. Rider supply drop (payout cut,    Stage 3a & 3b           City-wide or zone-wide, sharpest
       incentive change, churn)          (packed -> pickup)      at peak hours, all order types
    4. Dispatch / batching rule change   Stage 3 & Stage 4       Step change on backend deploy;
       (holding orders to pair them)                             batched-order share increases
    5. Dark-store picker bottleneck      Stage 2 (packing)       Specific understaffed stores/shifts
    6. Promo / sale demand spike         Stages 2 & 3 (queues)   Order volume up sharply at peaks
    7. Wider store delivery radius       Stage 4 (travel)        Average distance per order rises
    
    EXTERNAL
    8. Heavy rain / waterlogging         Stage 4 (travel) &      Correlated with rainfall hours
                                         Stage 3 (riders log     and low-lying neighborhoods
                                         off)
    9. Roadworks / festival / VIP        Stage 4 (travel)        Concentrated along specific
       traffic diversions                                        corridors or event dates
    10. Competitor rider poaching or     Stage 3a & 3b           Gradual or abrupt drop in logged-in
        local gig-worker strike          (packed -> pickup)      rider hours in this city only
    

    Look how cleanly the stage table narrows the field: if road traffic or flooding were the primary culprit, Stage 4 (travel) would surge. When Stage 4 is nearly flat (+0.1 min) while Stage 3 (shelf wait for pickup) jumps (+1.2 min), rider supply vs. demand or dispatch batching moves straight to the top.

  6. Verify why a small rider drop creates a big wait, and build the bridge

    Beginners are often surprised that losing just 10–12% of riders can multiply pickup wait times. That happens because waiting time in a queue grows non-linearly as utilization (the fraction of available rider time spent actively handling orders, demand / capacity) approaches 100%. When riders are 50% busy, a newly packed bag almost always finds a free rider nearby; when riders are 90% busy, any brief burst of orders creates a backlog that takes many minutes to clear.

    Even better, riders are not one giant city-wide pool — an order at a dark store can only use riders within a couple of kilometers of that store. Look at one peak-hour dark store handling 2,000 / 60 ≈ 33.3 orders/hour, where each rider completes 2.5 orders/hour (24 minutes per round trip):

    Active riders   Store capacity       Utilization          Avg wait for a free rider
    at the store    (riders × 2.5/hr)    (33.3 / capacity)    (Erlang C multi-rider queue)
    --------------------------------------------------------------------------------------
    17 riders       42.5 orders/hr       78.4%                ~1.7 minutes
    16 riders       40.0 orders/hr       83.3%                ~3.5 minutes
    15 riders       37.5 orders/hr       88.9%                ~8.1 minutes
    

    (Erlang C is the standard queueing formula for c parallel workers sharing one queue.) Dropping just 2 riders per store during peak hours (17 -> 15, a 12% supply dip after a peak-incentive cut) nearly 5x's peak wait time (1.7 -> 8.1 min), easily adding +1.2 min when averaged across peak and off-peak hours!

    Confirm the root cause with four strict checks before closing the investigation: 1. Timing alignment: Did logged-in rider hours drop (or batching rate jump) on the exact day Stage 3 rose? 2. Dose-response: Do zones/hours with the steepest drop in riders-per-order show the largest Stage 3 increase? 3. Untouched control: Did off-peak hours with plenty of idle riders (utilization < 60%) keep flat pickup waits? 4. Full minute bridge: Verify your attributed causes sum up to the full +1.5 minutes (for example: +1.2 min peak rider deficit in Stage 3 + +0.2 min larger promo baskets in Stage 2 + +0.1 min one rainy evening in Stage 4 = +1.5 min).

  7. Recommend targeted fixes and stage-level guardrails

    Close with concrete actions tied to the verified root cause — and never "fix" the ratio by padding the expected benchmark to hide real slowness:

    • Immediate relief (24–72 hours): Restore targeted peak-hour login incentives in high-utilization zones, temporarily cap delivery radii on stores above 85% rider utilization so riders cycle back faster, and display honest dynamic ETAs at checkout while supply recovers so customer trust is protected.
    • Structural fix (1–4 weeks): Rebalance shift scheduling around peak demand curves, fix dispatch hold-for-batching thresholds if batching added more shelf wait than travel time saved, and audit why rider login hours dipped.
    • Preventive monitoring: Track and alert on each stage's P50 and P90 separately per store and hour (alongside rider utilization and numerator/denominator ETAs) so any future regression points to its exact stage and owner on day one rather than a week later.

Intuition & how it works

Think of an Instamart grocery delivery like a 4-leg relay race: the store accepts the order, a picker packs the bag, a delivery rider picks up the bag from the shelf, and the rider drives it to the customer's door. If the team's finish time suddenly gets 10% worse against the target clock, staring only at the final stopwatch tells you nothing about which runner slowed down — or whether someone quietly moved the target clock backward.

The naive approach in product interviews is to jump straight into brainstorming twenty plausible stories ("maybe monsoon rain!", "maybe dark stores are understaffed!", "maybe traffic got worse!"). That fails because dozens of causes sound believable, and pitching fixes for the wrong stage wastes money or hurts conversion without speeding up a single order. Worse, because "10% slower than expected" is a ratio (actual time / expected time), you could spend days investigating operations when a machine-learning update simply lowered the expected time by 10%.

Instead, work like a doctor narrowing down a diagnosis in three clean cuts, illustrated with a tiny concrete example where weekly orders rose from 15.0 minutes to 16.5 minutes against a 15.0-minute expected standard:

  1. Check the ruler first: Verify numerator (15.0 -> 16.5 min actual) and denominator (15.0 -> 15.0 min expected) separately so you know deliveries truly slowed by +1.5 minutes rather than the benchmark shrinking (15.0 / 13.64 ≈ 1.10).
  2. Split the relay into non-overlapping stages: Break the +1.5 minutes across packing (3.0 -> 3.2, +0.2 min), bag waiting on the shelf for pickup (2.5 -> 3.7, +1.2 min), and road travel + doorstep (9.0 -> 9.1, +0.1 min). Right away, 80% of the delay (+1.2 min) sits on the pickup shelf while road travel is flat — immediately ruling out city-wide road traffic as the main driver!
  3. Slice and size the bottleneck: Segment that +1.2 min shelf wait by store and hour using excess order-minutes (orders × extra minutes). Finding that peak hours lost 12% of active riders after a payout change explains why store queues spiked and gives you an exact, actionable fix.

Key points

  • Validate numerator, denominator, and formula first. Separate actual minutes from expected ETA (estimated time of arrival) minutes, confirm whether the metric is mean(actual) / mean(expected) or mean(actual / expected), verify timestamp logging across app versions, and compare P50 (median) against P90 (90th percentile) to distinguish a tail spike from a uniform shift.
  • Use scenario clues to eliminate unrelated branches early. Uniform impact across basket categories rules out category-specific picking or packaging bottlenecks and points to shared fulfillment layers (couriers, dispatch, roads, ETA predictions, logging). A one-week onset defines a clear change window, and comparing peer Tier-1 metros separates national releases from city-specific disruptions.
  • Decompose using strictly consecutive timestamps. Using t_placed -> t_accepted -> t_packed -> t_picked_up -> t_delivered ensures stage averages add up to total delivery time with zero overlap. Because riders are often assigned during packing, split Stage 3 around max(t_packed, t_assigned) so neither packing nor rider wait is double-counted.
  • Weight segments by excess order-minutes and check mix shift. Multiplying orders × extra_minutes surfaces whether 6 high-volume dark stores (fulfillment-only micro-warehouses) carry 80% of the city's delay. Also check mix shift (Simpson's paradox, where shifting from 20% to 30% long-distance orders raises the overall average from 15.6 to 16.4 minutes even when every distance band is unchanged).
  • Queueing explains why small supply dips hurt badly. Utilization (demand / capacity) governs queue length non-linearly. In a per-store Erlang C queue (the standard multi-worker queue model) serving 33.3 peak orders/hour at 2.5 orders/rider-hour, dropping from 17 to 15 riders lifts utilization from 78.4% to 88.9% and jumps average wait for a free rider from 1.7 to 8.1 minutes.
  • Prove causality four ways, then fix operations — never pad the benchmark. Confirm timing alignment, dose-response across zones/hours, an unaffected control (off-peak hours or other cities), and a minute-by-minute bridge summing to +1.5 minutes.

Common mistakes

  • Brainstorming operational causes before checking the denominator and logging. A recalibrated ETA model (15.0 -> 13.64 min) or a rider-app button change produces "+10% vs. expected" with zero change in physical delivery speed.
  • Double-counting parallel dispatch in the stage funnel. Adding (t_packed - t_accepted) and (t_pickup - t_assigned) when riders are assigned mid-packing inflates the stage sum above actual delivery time; always split around max(t_packed, t_assigned).
  • Comparing unweighted per-store averages. A tiny new peripheral store delayed by +8 minutes on 500 orders (4,000 order-minutes) matters far less to the city mean than ten busy stores delayed by +2 minutes on 5,000 orders each (100,000 order-minutes).
  • Overlooking distance or basket mix shifts. A promotion or wider delivery radius can increase average delivery minutes even if pickers and riders move at the exact same speed per item and per kilometer.
  • "Fixing" the metric by inflating the expected standard. Raising the internal benchmark from 15.0 to 16.5 minutes makes the "+10%" alert vanish while customers still wait just as long.

Follow-up questions

  • Suppose funnel metrics reveal that shelf-to-courier handoff duration increased whereas road transit duration stayed unchanged. Where do you drill in next? Split the packed-to-pickup window at t_ready = max(t_packed, t_assigned) and t_rider_arrived_at_store into three pieces: (1) packed bag waiting for rider assignment (no free riders nearby, or dispatch deliberately holding bags to batch two orders together), (2) assigned rider traveling to the store (riders dispatched from farther away because local pools are thin or still finishing a prior drop), and (3) rider waiting inside the store for bag handover (counter congestion, parking trouble, or pickers tapping "packed" prematurely before sealing the bag). Cross-check logged-in rider hours, orders per active rider at peak, assignment rejection rates, and batching rates against last week's release and payout logs. For example, if unassigned wait rose +0.4 min and rider-arrival wait rose +0.8 min while in-store handover stayed flat and peak logged-in riders fell 12%, you have isolated a rider-supply shortfall rather than a store-counter bottleneck.
  • Suppose severe monsoon storms and flooded streets turn out to be responsible. Which operational levers would you pull, and should checkout ETAs be updated? Operationally, activate surge/rain rider incentives to keep fleet supply online, temporarily shrink delivery radii or cap order intake at flooded dark stores so queues cannot spiral, and route around waterlogged corridors. Yes — increase the customer-facing ETA shown at checkout (and add a brief weather banner), because promising 15 minutes and delivering in 20 breaks trust and spikes support contacts, whereas promising 21 minutes and delivering in 20 keeps the promise intact. Keep that weather buffer scoped dynamically to affected zones and hours, A/B test or calibrate its checkout-conversion trade-off against cancellations, and continue tracking raw actual minutes against the unbuffered internal baseline so weather buffers never mask underlying operational regressions.
  • How would you measure whether these fulfillment delays have already begun eroding customer retention, and which primary metric would you track? Track the 7-day and 14-day repeat-order rate (the share of customers who place a subsequent Instamart order within 7 or 14 days) segmented by how late their experienced order was relative to the promised ETA (on time, 1–5 minutes late, >5 minutes late). Because delayed orders happen disproportionately during peak hours, bad weather, and long distances — where customer habits already differ — avoid naive raw comparisons; match delayed and on-time orders within the same store, hour-of-day, distance band, and prior order frequency (or run a difference-in-differences comparison, which subtracts out parallel week-over-week trends in an unaffected sister city). For instance, if matched orders >5 minutes late show a 3 percentage-point lower 14-day repeat rate (57% vs. 60%) and the share of >5-minute-late orders jumped from 10% to 25%, that 15 percentage-point jump costs 0.15 × 3 = 0.45 percentage points of city-wide repeat retention — paired with immediate leading indicators like post-order ratings, "where is my order" chat tickets, and mid-delivery cancellations.

Follow-up questions

Similar questions

More Swiggy interview questions

All 1 Swiggy questions →