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
System Design
Software Engineer
Walmart Labs
November 29, 2026
Software Engineer
Technical Screen
System Design
Easy

0

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
Pub-sub fan-out
Subscription indexing
Debouncing
Notification preferences
Delivery tracking
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. 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 Problems
Sample 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
  1. 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.
  2. Change Detector consumes inv...

Submit Your Answer
Markdown supported