Interview Questions/System Design/Design an E-commerce Checkout & Cart
AdvancedSystem-Design
45 min

Design an E-commerce Checkout & Cart

System DesignPaymentsDatabasesCachingReliability
Advertisement
Interview Question

Design a highly available checkout/cart system handling flash sales, inventory reservations, payments, and order confirmation.

Key Points to Cover
  • Cart service with session/identity; cache hot carts
  • Inventory reservation with short TTL and oversell prevention
  • Payment orchestration with idempotency keys and retries
  • Order pipeline, outbox pattern, and eventual consistency
  • Anti-fraud checks, rate limits, and SLOs for peak events
Evaluation Rubric
Robust cart & session design20% weight
Safe reservations & oversell control30% weight
Idempotent payment orchestration30% weight
SLOs, retries, and observability20% weight
Hints
  • 💡Model reservations explicitly, not as decrements.
Potential Follow-up Questions
  • How do you handle partial payment failures?
  • How would you implement cart merge across devices?
Advertisement