Design Real-Time Inventory & Availability
Start with why this is hard, because the difficulty is not where a newcomer expects it. If every grocery store handed Instacart a perfect, live list of exactly what was on each shelf, this would be a cache with a short expiry and nothing to interview on. That is not the world. A store's inventory system was built to run a register. The count it reports is hours stale, silent about the milk that just sold out, and confidently wrong about the item a manager moved to an endcap. The person who actually knows what is on the shelf is the shopper standing in the aisle. So availability is a belief you predict, correct as real people report what they find, and serve to a customer deciding whether to put a carton in their cart.
The arc of the design follows that reframe. Signals flow in from two sources that disagree, the retailer feed and the stream of shopper findings, and a prediction turns them into a probability that the item is really there. That score is read constantly, on every search and every product page, so serving it fast and consistently is half the problem. Sometimes the prediction is wrong: a shopper reaches for the item and it is gone. Then the system has to run a substitution conversation between customer and shopper before the order can complete. Three moving parts: predict the score, serve it two ways, and handle the miss.
- 1 diagram
- 5 sections
- about 45 min
Premium lessonInstacart interview guide
These took digging.
What candidates walked out with, from 20,000+ reports, forum threads behind logins and write-ups in Chinese. Then solved step by step.
100 companies. Checked every month.
Unlock all 100 companies$49 a year · less than $1 a week · 30-day money-back guarantee
Instacart interview guideKnow what Instacart asks before you walk in.
30 coding · 5 system design · 14 behavioral questions
Get their questions first.
InterviewLegend is independent and not affiliated with or endorsed by any company it covers.