Design a Shopping Cart
MediumSystem design · Commerce
Design a shopping cart service. Users can add, remove, and update items before checking out, across devices and sessions.
Requirements
- Support anonymous and signed-in carts
- Merge carts across login and devices
- Handle price changes, promotions, inventory checks, and abandoned carts
- Discuss storage choice, TTL, consistency, and checkout handoff