Online Shopping Cart System

Asked at Uber · System Design for ML · Difficulty: Hard · Last asked Feb 14, 2026

Design an online shopping cart for a marketplace-style product, with the key constraint of one active cart per merchant per user. The difficulty is modeling per-merchant carts, handling concurrent updates from multiple devices, choosing the right database and indexes, and deciding whether to snapshot product price and metadata inside the cart.

Loading the problem…