Design a Price Drop Alert Service for Saved Products
Last updated: November 29, 2026
Quick Overview
Design a service that lets customers watch products (from wish lists or a 'notify me' button) and notifies them when the price falls below a threshold or by a meaningful percentage.
Amazon
November 29, 20260
0
0 solved
Design a service that lets customers watch products (from wish lists or a 'notify me' button) and notifies them when the price falls below a threshold or by a meaningful percentage.
Amazon has hundreds of millions of products with prices changing constantly from repricing algorithms, so this tests efficient matching of a high-rate price change stream against a large set of watches. Interviewers look for an inverted index from product to watchers and sensible notification throttling.
What the Interviewer Expects
- Store watches efficiently by product
- Consume the price change stream and match quickly
- Avoid notifying on noisy, tiny or temporary changes
- Rate-limit notifications per customer
- Handle products with millions of watchers
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
- How would you handle a price that drops and recovers within minutes?
- How do you support thresholds in multiple currencies?
- How would you batch alerts into a daily digest?
- What if pricing publishes a bad price by mistake?
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
Functional: customers create, update, and remove watches with an optional target price; when the offer price drops below target (or by at least 10% from the price at watch time), send a push or em...
High-Level Design
- Watch Service: writes watches to a table partitioned by
product_idwith sort keycustomer_id, plus a secondary index by customer for the management UI. - Price Change Stream: the pricing...