Preparing your design workspace

Loading the problem and your latest saved attempt…

Design a Shoe E-Commerce Marketplace

Browse and search a categorized shoe catalog with rating summaries, then reserve size-specific inventory and recover one durable checkout outcome.

Problem statement

For this exercise, assume you are designing a shoe e-commerce marketplace. Support catalog browsing, size-specific inventory, carts, checkout, and durable orders. Define a coherent first production version that satisfies the listed requirements and scale while making failures and degraded behavior visible.

For this exercise, categories form a bounded single-parent tree and products reference category IDs. Browsing a category includes its descendants. Keyword search matches all normalized terms in product name and brand, with category, seller, size, price and in-stock filters.

Return at most50 products per page in ascending stable product-ID order with a query/filter-bound cursor. Catalog changes may alter membership during pagination; the API promises bounded forward progress, not a frozen complete snapshot.

Product tiles include matching SKU price/availability and a read-only rating summary with count and average, or no average when count is zero. Ratings are supplied by an existing trusted review source; authoring reviews, moderation, recommendations and seller payouts are outside scope.

Product/SKU price and availability on a browse page are advisory; checkout rechecks stock and accepted price before creating an order.

Keep the category/search/rating read path independent from the inventory/payment authority, and explain degraded search or unavailable rating summaries without inventing stock or a rating.

What to build

  1. Browse categories and search shoes by product name/brand, category, seller, size, price and availability, with bounded cursor pagination and read-only product rating summaries.
  2. Maintain carts and reserve size-specific inventory during checkout.
  3. Create one durable order outcome while coordinating payment and inventory.

At scale

  • For this exercise, assume 20 million products and 200,000 browse requests per second at peak.
  • Sustain 10,000 checkout attempts per second during launches.
  • Inventory oversell is forbidden; browse availability may lag by up to five seconds.
  • For this exercise, target300 ms p95 for browse/search reads, category/text changes searchable within 30 seconds, and rating summaries updated within 1 minute in normal operation. Expose stale/unavailable projections; the existing five-second availability bound is separate.