Preparing your design workspace

Loading the problem and your latest saved attempt…

Design a Responsive Product Catalog Search Frontend

Design the component tree and bounded query flow for a product grid that stays responsive as a user types.

Problem statement

Design a search input and product-catalog grid with a clear component tree and fast search/filter responses. The catalog can have more matches than a browser can load or render.

For this exercise, assume an existing search backend owns product data and returns bounded pages of product summaries; backend indexing, checkout and catalog writes are outside scope.

The browser must keep the current query and filters coherent when responses arrive out of order, support further pages without mixing query sessions, and present loading, empty and error states.

Use the declared practice responsiveness and bounded-rendering assumptions to explain request coordination, caching, paging and rendering trade-offs.

What to build

  1. A user types a query or changes filters and sees matching product summaries in a grid with honest loading, empty and error states.
  2. A user requests further bounded pages for the same query session without mixing obsolete results.
  3. The search input stays responsive while requests, cached results and rendered cards remain bounded.

At scale

  • For this exercise, assume 100 million catalog products and 2000 search requests/s across users; the browser never downloads the complete catalog.
  • For this exercise, assume at most 50 products per API page,200 ms typing debounce,200 ms backend p95 and 350 ms end-to-end p95 after an admitted query.
  • For this exercise, assume a viewport can display around 20 cards and the browser retains at most 1000 summaries across cached page windows; explain how rendering and cache eviction remain bounded.
  • For this exercise, network requests may finish out of order or fail, and cancellation may race with completion; only active query-session results may update the grid.