Design a Rental Pricing Analytics Dashboard
Design a host-facing market-price chart fed by a fast online path and an authoritative offline recomputation path.
Problem statement
For this exercise, assume hosts use a dashboard to compare their nightly price with the average active-listing price for a market, date, and room-type filter.
Price and availability changes should appear quickly in recent chart buckets, while a daily offline job recomputes authoritative aggregates, incorporates late or corrected events, and converges the chart without double counting.
Design the ingestion, aggregation, storage, serving, reconciliation, and observability paths. Keep booking, search ranking, and automated price recommendations out of scope.
What to build
- A host can request a time series of average active-listing prices for one market, date range, and bounded set of listing filters.
- Listing price, availability, and correction events update recent aggregate buckets without counting the same source version twice.
- A daily offline recomputation replaces drifted buckets and exposes freshness and completeness metadata to the dashboard.
At scale
- Assume 10 million active listings and up to 100 million price or availability events per day.
- Assume 5,000 dashboard reads per second at peak with a p95 response target below 500 milliseconds.
- Recent online aggregates should reflect accepted events within 2 minutes; the daily authoritative recomputation should finish by 06:00 UTC.
- Retain 24 months of hourly and daily chart buckets, and preserve enough event/version history to replay the last 7 days.