Design Dark Store Inventory Reservation for Ten Minute Delivery

Last updated: November 29, 2026

Quick Overview

Design the inventory service for a quick commerce business where each dark store holds a few thousand SKUs, carts reserve stock at checkout, and an order must be confirmed only if every item can be picked within minutes.

Zomato
System Design
Software Engineer
Zomato
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

0

0 solved


Design the inventory service for a quick commerce business where each dark store holds a few thousand SKUs, carts reserve stock at checkout, and an order must be confirmed only if every item can be picked within minutes.

Blinkit, part of the Zomato group, promises delivery in about ten minutes from small dark stores, so overselling a sold-out item means a cancelled order and a refund. The round checks consistency design under hot contention, reservation expiry and reconciliation with the physical shelf.

What the Interviewer Expects
  • Scope stock per store per SKU and identify hot keys like milk at 7am
  • Model reserve, confirm, release and expire as explicit states
  • Make reservation atomic across all items in a cart or explain partial handling
  • Use idempotency keys so payment retries do not double reserve
  • Reconcile system counts with picker scans and audits
  • Show availability to browsing users from a cheaper, slightly stale read path
Key Topics to Cover
Inventory consistency
Distributed locking alternatives
Idempotency
TTL reservations
Reconciliation
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How long should a reservation hold before payment, and what breaks if it is too long?
  • A picker finds the shelf empty though the system shows 3 units. What happens to the order and the count?
  • How do you serve the 'only 2 left' badge to millions of browsing users without hitting the reservation store?
  • How would you shift demand to a neighboring store when one runs low?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Per store: on-hand count per SKU, reservations held from checkout until payment succeeds or a timeout (about 5 minutes), then decrement on pick. Never confirm an order the store cannot fill. Scale: a ...

High-Level Design

Inventory service owns a stock(store, sku) row with on_hand and reserved, and a reservation table keyed by cart id with items, state and expiry. Checkout calls reserve(cart_id, items); payme...


Submit Your Answer
Markdown supported

Related Questions