Design catalog browsing, cart, checkout, and order processing with inventory consistency. Peak traffic during sales requires caching and careful stock reservation to avoid overselling.
Functional requirements
- Product catalog with search and categories
- Shopping cart and checkout flow
- Inventory reservation and order placement
- Order history and shipment status updates
Non-functional requirements
- Strong consistency for inventory during checkout
- Horizontal scale for browse and read-heavy catalog
- Resilience during flash sales (queue, rate limits)