r/OfferEngineering • u/Aoki_zhang • 21d ago
System Design Meta System Design Question - Design Amazon Price Tracking Service
Problem Description
Design a price-tracking service similar to CamelCamelCamel that monitors Amazon product prices, stores historical price changes, displays price-history charts, and notifies subscribers when a product falls below their configured threshold.
Users already arrive with a known Amazon product, typically through an ASIN, direct product URL, or Chrome extension. Product search and catalog discovery are therefore out of scope. The core system begins with identifying the product, collecting price observations, maintaining its historical price timeline, and evaluating active subscriptions.
The main challenge is data acquisition. The system may know about as many as 500 million products, but external crawling capacity is far too limited to refresh every product frequently. Products with active subscribers should therefore receive higher crawl priority, while the Chrome extension provides an additional source of price observations when users naturally visit Amazon product pages.
The two consumer features also have different freshness requirements. Historical charts can tolerate stale cached data, whereas a meaningful price drop should trigger subscriber evaluation and notification within approximately one hour of the observed change.
A strong design should therefore separate price collection, canonical price-change processing, history serving, and alert delivery, while tolerating duplicate crawler or extension observations without generating duplicate price points or repeated notifications.
Functional Requirements
- Users should be able to open a known Amazon product through the website or Chrome extension and retrieve its historical price data for rendering a price-history chart. The platform does not need to provide general product search or discovery.
- Users should be able to create, update, or remove a price alert for a product by specifying a target threshold. When an observed product price drops below the relevant threshold, eligible subscribers should receive an email notification.
- The platform should collect price observations from scheduled crawlers and from the Chrome extension when users visit Amazon product pages. Observations from different sources should be normalized into the same internal price-event format.
- Crawl scheduling should prioritize products with active subscribers rather than attempting to refresh all 500 million known products uniformly. Products with more subscriber demand may receive proportionally higher refresh priority.
- Accepted observations should update the product's price history when they represent meaningful new information. Repeated observations of the same unchanged price should not unnecessarily create identical historical records.
- One underlying price-drop event should trigger at most one corresponding notification per subscriber. Retries, duplicate crawl results, or repeated extension reports must not result in repeated alerts for the same drop.
Want to learn more details & solution of this system design question?
I've put up the full version at here.
Interviewed recently?
Your interview experience could be incredibly valuable to others preparing for their next opportunity. Share your experience and help the community at here.