← Questions

Design a price tracking service

0
MetaSystem designLast asked Mar 2026

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

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing