Design a Warehouse Barcode Scan Event Pipeline for Inventory Counts
Last updated: November 29, 2026
Quick Overview
Design the pipeline that takes barcode scans from handheld devices in an Amazon fulfillment center (receive, stow, pick, pack) and keeps an up-to-date count of each item in each bin.
Amazon
November 29, 20260
0
0 solved
Design the pipeline that takes barcode scans from handheld devices in an Amazon fulfillment center (receive, stow, pick, pack) and keeps an up-to-date count of each item in each bin.
Operations technology teams use this to check event modeling fundamentals in a domain every Amazon engineer hears about. The interviewer wants a simple, reliable flow, idempotent processing of rescans, and a way to correct drift with cycle counts.
What the Interviewer Expects
- Model scan events with bin, item, quantity delta and action type
- Use a durable stream between devices and the counter
- Make processing idempotent for repeated scans
- Store current counts per bin and item
- Reconcile with physical cycle counts
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do scanners behave when the warehouse Wi-Fi drops?
- How would you show a near-real-time dashboard of picks per hour?
- How do you investigate a bin whose count keeps going negative?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: each scan produces an event (stow adds to a bin, pick removes, move transfers between bins); maintain count per (fc_id, bin_id, asin); support cycle count corrections. Non-functional: a ...
High-Level Design
Handhelds write events to a local queue and send them to an FC-local ingestion API, which appends to a Kinesis stream partitioned by bin id. A consumer applies deltas to a BinInventory table (DynamoDB...