Preparing your design workspace

Loading the problem and your latest saved attempt…

Design a Partner Data Aggregation and Query Service

Design a service that normalizes data from external partner APIs into a fresh, provenance-preserving catalog for low-latency user queries.

Problem statement

For this exercise, assume three external partners expose differently shaped APIs for item offers containing partner item identifiers, attributes, price, and availability.

The platform must ingest and normalize those offers, associate equivalent items when a reviewed mapping exists, and answer user filter and sort queries over a consolidated catalog.

A query may return a partial or stale-marked response when a partner is unavailable, but it must never present stale availability as current or merge uncertain identities silently.

Design the partner integration, canonical storage, vendor-search aggregation and deterministic filter or sort serving, freshness, and scaling path. Preserve enough source provenance for a user to understand which vendor supplied each offer and never let one slow vendor hold the entire query open indefinitely.

Checkout and payment are out of scope; the design should support adding many more partners later.

What to build

  1. The platform can poll or consume each partner's supported feed, normalize valid offers, and preserve source version and provenance for replay.
  2. Equivalent partner offers can be associated with one canonical item only through deterministic keys or a reviewed mapping, while uncertain matches remain separate.
  3. Users can filter, sort, and page through consolidated offers with price, availability, source, and freshness metadata.
  4. The system isolates partner quotas and failures, exposes partial or stale coverage explicitly, and recovers ingestion without duplicating or regressing source versions.

At scale

  • For this exercise, assume the initial three partners produce 100 million active offers and a combined average of 100,000 updates per second with tenfold bursts.
  • For this exercise, assume 30,000 user queries per second and target 500 milliseconds p95 for common cached filter and sort queries.
  • For this exercise, normally keep partner-derived availability no more than five minutes old and show exact source coverage and observation time on every response.
  • For this exercise, queues may redeliver or reorder updates, each partner enforces independent quotas, and a zone failure must not lose accepted source checkpoints or serving-ready versions.