Design Back in Stock and Price Drop Alerts
Last updated: November 29, 2026
Quick Overview
Design a feature where customers subscribe to an item and get a push notification or email when it comes back in stock at their store or drops below a target price. Alerts must be timely and must not spam users.
Walmart Labs
November 29, 20260
0
0 solved
Design a feature where customers subscribe to an item and get a push notification or email when it comes back in stock at their store or drops below a target price. Alerts must be timely and must not spam users.
Alerts on hard to find items (consoles, popular toys) and price drops drive return visits to the Walmart app. Interviewers use it as a mid-level question to test event-driven matching, fan-out to many subscribers, and practical deduplication and throttling.
What the Interviewer Expects
- Store subscriptions indexed by item and store
- Trigger from inventory and price change events
- Fan out efficiently for popular items with millions of subscribers
- Deduplicate, throttle and respect user preferences
- Track delivery and conversion metrics
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
- A console restocks with 200 units and 2 million subscribers. Who do you notify?
- How do you avoid alerting on an item that flickers in and out of stock?
- How do you let users set quiet hours?
- How do you measure whether alerts help or hurt?
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
Users subscribe to (item, store or ship-to, condition) where condition is back in stock or price below X. Alerts sent within minutes of the change, via push or email per preference. Expect tens of m...
High-Level Design
- Subscription Service stores subscriptions in a table keyed by
(item_id, store_id)with user id, type and threshold; secondary index by user for management. - Change Detector consumes inv...