Problem
Design an online shopping cart that tracks items, prices, and converts to orders
- Handle concurrent multi-device edits without losing updates
- Validate prices atomically during checkout to prevent stale commits or double orders
- Scale reads to millions of carts under 100ms and clean up abandoned sessions
Key Test Points
- Optimistic concurrency control
- Idempotency keys
- Write-through cache
Spot an issue or have a suggestion?