Your question is Real-Time Inventory at Scale. 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).
How would you design a real-time inventory tracking system that handles millions of updates daily?
Explain how you would ingest, order, deduplicate, and aggregate inventory events while maintaining accurate stock state. Include any ML components for anomaly detection or demand forecasting, and discuss storage, serving, monitoring, failure recovery, and consistency tradeoffs.