Design a Product Browsing Experience

Difficulty: MEDIUMCategory: HLDFrequency: 1Asked On 2024-11-08

Problem Statement

Design a scalable and responsive product browsing experience for an e-commerce platform that enables users to efficiently search, filter, sort, and explore millions of products across categories (e.g., electronics, fashion, groceries) in real-time with a seamless user interface.


The system should support low-latency UI, rich filtering, personalization, infinite scrolling, and high availability across devices and geographies.


🎯 Functional Requirements:

1.Product Discovery:
•Category browsing (e.g., Electronics → Mobiles → Android)
•Infinite scroll/pagination
•Real-time availability updates
2.Search & Autocomplete:
•Typing-based suggestions
•Handle spelling errors (e.g., "iphon" → "iPhone")
3.Filtering:
•Dynamic filters (price, brand, rating, etc.)
•Multi-select filters with real-time updates
4.Sorting:
•Sort by relevance, price (low→high, high→low), rating, popularity
5.Personalization:
•Show recommended products based on behavior
6.Product Cards:
•Responsive UI with images, prices, rating, delivery ETA, etc.
7.Caching for Speed:
•Fast loading with local/device cache or edge cache
8.Multi-platform:
•Support mobile, desktop, tablet with consistent experience


⚙️ Non-Functional Requirements:

•Low latency (<200ms page load)
•Horizontally scalable (support millions of concurrent users)
•Fault-tolerant and highly available
•Geo-distributed for performance
•Real-time updates (e.g., “Out of stock”)


Solution

Comments