🎉 75% of content is free forever — Unlock Premium from $10/mo →
CW
đŸ’ŧ Servicesâ„šī¸ Aboutâœ‰ī¸ ContactView Pricing Plansfrom $10

Design Amazon

System Design ProblemsE-Commerce SystemsđŸŸĸ Free Lesson

Advertisement

System Design Problems

Design Amazon

Amazon serves 300M+ active users with 350M+ products. This design covers product catalog with search, shopping cart, checkout with inventory management, and order fulfillment.

  • Scale — 300M+ users, 350M+ products, 66K orders/hour
  • Availability — Must handle Prime Day spikes (10x normal)
  • Inventory — Real-time stock tracking across 175+ fulfillment centers

Amazon's core challenge is building a resilient e-commerce platform that handles extreme traffic spikes while maintaining inventory accuracy.

Requirements Clarification

Functional Requirements

  1. Search products with filters and sorting
  2. View product details with reviews
  3. Add to cart and checkout
  4. Order tracking and management
  5. Inventory management
  6. Recommendation engine
  7. Seller marketplace

Non-Functional Requirements

  1. Availability: 99.99% uptime
  2. Latency: Search < 200ms, Checkout < 2s
  3. Consistency: Strong for inventory and payments
  4. Scale: 66K orders/hour, 10x on Prime Day

Back-of-the-Envelope Estimation

High-Level Architecture

Amazon ClientsAPI Gateway / CloudFrontCatalog SvcSearch SvcCart SvcCheckout SvcOrder SvcInventory SvcPayment SvcReview SvcEvent Bus (Kafka/SNS)DynamoDB (Cart)Aurora (Orders)ElasticsearchS3 (Images)Redis (Cache)

Inventory Management

Checkout Flow: The Two-Phase Commit

CartReserve InventoryProcess PaymentCreate OrderConfirmCheckout Saga

Product Search

Data Model

Practice Exercises

  1. Inventory: Design a distributed inventory system that prevents overselling across 175 fulfillment centers.
  2. Cart: How would you handle a user adding an item to cart that goes out of stock before checkout?
  3. Search: Design a search system for 350M products with < 200ms latency.
  4. Prime Day: How would you handle 10x traffic on Prime Day without over-provisioning?

What to Learn Next

-> Design Dropbox File sync and storage systems.

-> Design Google Search Web-scale indexing and ranking.

-> Saga Pattern Distributed transactions.

-> Idempotency Handling duplicate requests safely.

-> Outbox Pattern Reliable event publishing.

-> Circuit Breaker Preventing cascade failures.

Need Expert System Design Help?

Get personalized tutoring, project support, or professional consulting.

Advertisement