Preparing your design workspace

Loading the problem and your latest saved attempt…

Design a Marketplace Product Catalog Platform

Design an authoritative multi-merchant listing catalog that sustains high write volume and serves fresh shopper browse and detail reads.

Problem statement

For this exercise, assume authenticated merchants create, update, publish, and withdraw tenant-scoped product listings. A listing is keyed by merchant and merchant SKU, has an immutable source version, and contains title, category, structured attributes, price, availability, media references, and lifecycle state.

Accepted versions are monotonic: delayed or replayed older writes never replace newer state. Shopper-facing browse supports category plus a bounded set of structured filters and stable cursor pagination, and detail reads return one listing with an explicit freshness watermark.

Search, cache, and browse projections are derived and must be rebuildable from canonical listing state without silently regressing a published version.

Design merchant and shopper APIs, the authoritative data model, indexes, write and projection pipelines, high-read/high-write partitioning, caching, consistency, failure recovery, and observability.

Checkout, orders, inventory reservation, payments, recommendations, advertising, and media transformation are outside scope.

For this exercise, also compare MongoDB and DynamoDB as possible canonical stores for the same listing workload. Explain how the stated filters, indexed access patterns, partition hot spots, conditional version changes and consistency needs affect the choice.

Either choice is acceptable when its limits and any required read projection are explained; frequent updates alone do not select a database.

What to build

  1. An authenticated merchant can idempotently create, update, publish, or withdraw one tenant-scoped listing with a source version and receive an accepted, stale, invalid, conflict, or pending outcome.
  2. A shopper can browse currently published listings by category and bounded structured filters using stable cursor pagination.
  3. A shopper can read one currently published listing with its price, availability, attributes, media references, and projection freshness.
  4. Merchants and operators can inspect write status and projection lag, and the platform can reconcile or rebuild derived browse, search, and cache state from canonical listing versions.

At scale

  • For this exercise, assume five million merchants and five billion active listings with highly skewed catalog sizes, categories, and merchant update rates.
  • For this exercise, support peaks of 100,000 listing writes per second and 500,000 shopper browse or detail reads per second.
  • For this exercise, target 250 milliseconds p95 for healthy shopper reads and 30 seconds p95 for an accepted listing version to become visible in browse and detail projections.
  • For this exercise, retain canonical listing-version and audit evidence for one year; a zone failure must not lose accepted writes, and derived indexes or caches must rebuild without exposing an older version as newer.