KatInterview

Design a Product Price Monitor with Alerts

System DesignModel answer
MediumModel answerSystem Designdistributed-systemstime-seriesnotifications

Last updated

Build a scalable service that tracks prices across e-commerce sites, stores historical data, and notifies users when prices drop below their thresholds.

You need to architect a service that monitors product prices from online retailers. Users paste product URLs into your platform, view price trends over time, and configure alerts that trigger when prices fall to their desired level.

Your architecture must handle:

  • Processing incoming product URLs and identifying what they refer to
  • Collecting price data regularly for millions of items
  • Storing and serving price history efficiently
  • Managing user alert rules and delivering timely notifications
  • Avoiding redundant work when multiple users watch identical products
  • Balancing cost, latency, and data freshness at scale

Walk through your design choices, explaining the tradeoffs and how each component addresses the requirements.

Hints

Hint 1

Start by defining concrete scale numbers: how many users, products, and price checks per day? This anchors all downstream decisions.

Hint 2

The same product appears under many different URLs. Solving canonicalization early prevents duplicate tracking and wasted fetches.

Hint 3

Not all products need the same refresh rate. Think about how to prioritize popular items or those close to user alert thresholds.