Design Store Inventory Sync From Registers to Online Availability

Last updated: November 29, 2026

Quick Overview

Design a pipeline that turns sales, receiving, returns and shrink adjustments from 4,700 stores into near real-time on-hand counts used by walmart.com to decide whether an item is available for pickup today. Wrong counts cause cancelled orders, so accuracy and freshness both matter.

Walmart Labs
System Design
Software Engineer
Walmart Labs
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

0

0 solved


Design a pipeline that turns sales, receiving, returns and shrink adjustments from 4,700 stores into near real-time on-hand counts used by walmart.com to decide whether an item is available for pickup today. Wrong counts cause cancelled orders, so accuracy and freshness both matter.

Store inventory accuracy drives pickup promises, and Walmart engineers care a great deal about the gap between what the system thinks is on the shelf and reality. The interviewer probes event-sourced counters, late and duplicate events from store networks, and how you expose a confidence-adjusted availability rather than a raw number.

What the Interviewer Expects
  • Model inventory as an event-sourced ledger per store and item
  • Deduplicate and order events coming from unreliable store links
  • Separate raw on-hand from sellable availability with safety stock
  • Reconcile with periodic cycle counts and correct drift
  • Size the system for billions of item-store pairs
Key Topics to Cover
Event sourcing
Idempotent consumers
Stream processing state
Reconciliation
Safety stock
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 do you handle a store that goes offline for six hours and then uploads a backlog?
  • How would you set safety stock per item, and who owns that decision?
  • How do you backfill after a bug double-counted returns for a week?
  • What consistency do checkout and the availability API each need?
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

Inputs: POS sales and voids, receiving scans, returns, markdown and shrink adjustments, cycle counts, and online picks. Output: an availability API answering `(store, item) -> sellable qty, confidence...

High-Level Design
  1. Each store runs an edge agent that writes events to a local durable queue with a store sequence number, then forwards to a central Kafka topic partitioned by (store_id, item_id) hash.
  2. A **stre...

Submit Your Answer
Markdown supported