Your question is Design Walmart Inventory-Aware Ranking. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
Walmart wants to improve product ranking across search and home-page recommendation surfaces so customers see relevant items that are also actually purchasable. The core challenge is balancing availability of the ML serving stack with consistency of inventory, price, and fulfillment signals across stores, FCs, and channels.
| Signal | Value |
|---|---|
| DAU | 90M shoppers across app + web |
| Peak read QPS | 650K ranking requests/sec during major events |
| Peak add-to-cart / checkout QPS | 120K writes/sec |
| Active catalog | 180M SKUs |
| Store / FC locations | 5,000+ pickup / delivery nodes |
| Candidate set per request | 20K retrieval → 1K ranking → 100 re-ranking |
| End-to-end p99 latency budget | 180ms |
| Inventory freshness target | < 60s for local availability |
Design an end-to-end ML system for inventory-aware product retrieval and ranking. Your design should explicitly address where the system should prefer strong consistency versus high availability / eventual consistency, and how those choices affect ML quality and user experience.