medium

Design an Online Shopping System

Design a system for an online shopping platform. The system should manage products, users, shopping carts, orders, and payments. Consider features like product search, reviews, discounts, and shipping options.

Suggested time: 45 minutes

Loading the workspace...

About this problem

An online shopping system looks simple from the outside: browse products, add to cart, pay, wait for delivery. But beneath that surface sits cart management with quantity merging, concurrent stock updates that must prevent overselling, a payment abstraction flexible enough for credit cards and PayPal today and crypto tomorrow, an order lifecycle that tracks a package from placement to doorstep, and a review aggregation system that computes ratings on the fly. Let's break this down.

What your design needs to cover

  • Browse and Search Catalog

  • Manage Shopping Cart and Checkout

  • Process Payments via Pluggable Methods

  • Track Order Lifecycle

  • Leave Product Reviews and Ratings

Key challenges the editorial covers

Learn from other designs

Related problems

Guides