Design a price tracking service
I was asked this
No reports yet. Sign in to say where you were asked it.
A system design interview question asked in Meta's system design round, last asked Mar 2026. It tests crawling, notifications and scheduling.
Design a service like a price tracker for online stores. It tracks the prices of millions of products across stores, shows each product's price history, and alerts users when a product they watch drops below the price they set.
Requirements
- Functional: add products to track (by link or search); collect prices regularly; store price history and show it as a chart; users set a target price per product; notify them (email or push) when the price falls to or below it.
- Non-functional: millions of products and users; popular products checked often, others less; alerts within minutes of a drop for popular products; respect each store's rate limits and terms; no duplicate alerts for one drop.
Clarifying questions
- How are prices collected: store APIs, affiliate feeds, or crawling pages?
- How fresh must prices be, and does that differ by product popularity?
- How many watchers per product at most?
- Should an alert fire again if the price rises and falls back?
- Do we track prices in several currencies and countries?
What a strong answer covers
- A data model: products, store listings, price observations (time series), watches with target prices.
- A crawl scheduler that prioritizes by popularity and observed price volatility, within per-store rate limits, with retries and parser health checks.
- Price changes as events: compare with the last price and publish only changes.
- Alert matching: an index of watches per product sorted by target price, so one drop finds every matching watcher quickly, even for products with huge watch lists.
- Notification delivery with deduplication, user preferences and batching.
- Storage of history with downsampling for old data, and caching of charts for popular products.
Follow-ups
- A store changes its page layout and the parser breaks silently.
- A huge sale drops prices on a million products at once. What happens to alerts?
- Detect fake discounts where the "original" price was raised just before.
- Let users track a product across several stores and alert on the cheapest.
Where it's asked
- Meta · System design · Last asked Mar 202645 min · Design discussion; either an LLM-agent system or a classic product system · Nominally AI-enabled, but the assistant is often not used
What it tests
crawling · notifications · scheduling
Sign in to see the worked answer
The full answer, chapter by chapter, with what interviewers expect at each level. New accounts get 5 credits: each one unlocks a question for good.
What the labs asked this week
A weekly email of what OpenAI, Anthropic and the other top AI labs asked engineers, round by round.
