PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/System Design/Amazon

Design an online bookstore for browse and purchase

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a candidate's skills in scalable system design, including distributed architecture, API design, data modeling, search/indexing, caching, inventory consistency, payment integration, security and observability.

  • hard
  • Amazon
  • System Design
  • Software Engineer

Design an online bookstore for browse and purchase

Company: Amazon

Role: Software Engineer

Category: System Design

Difficulty: hard

Interview Round: Onsite

Design an online bookstore that supports viewing/browsing books and purchasing. Elicit functional and non-functional requirements; propose APIs for search/browse, product detail, cart, checkout, payments, and order history; design the data model for books, authors, inventory, pricing, users, carts, and orders; outline service decomposition, storage choices (SQL/NoSQL), search indexing, caching/CDN, and read/write patterns. Address inventory reservation and consistency during checkout, idempotency for payment/order creation, security/privacy, observability, capacity planning, and strategies for scalability, availability, and fault tolerance.

Quick Answer: This question evaluates a candidate's skills in scalable system design, including distributed architecture, API design, data modeling, search/indexing, caching, inventory consistency, payment integration, security and observability.

Related Interview Questions

  • Design a Log Collection System - Amazon (medium)
  • Design Human Avoidance for Warehouse Robots - Amazon (medium)
  • Design a High-Availability Load Balancer - Amazon (hard)
  • Design a Ride-Hailing Matching System - Amazon (medium)
  • Design a cloud database write path and recovery - Amazon (hard)
Amazon logo
Amazon
Jul 31, 2025, 12:00 AM
Software Engineer
Onsite
System Design
2
0

System Design: Online Bookstore (Browse + Purchase)

Context

Design an online bookstore that allows customers to browse/search books, view product details, add to cart, and purchase. Assume web and mobile clients, users can be guests or logged-in, and third-party payment processing is used. Optimize for high read traffic on catalog/search and correctness during checkout.

Requirements

Functional Requirements

  1. Catalog and discovery
    • Browse categories, filter, sort (by price, rating, relevance).
    • Full-text search with facets (author, genre, format, price range, language).
    • Product detail page: title, authors, description, ISBN, formats (hardcover/ebook), price, availability, images, ratings.
  2. Cart and checkout
    • Cart operations: create, add/update/remove items, view cart, merge guest cart on login.
    • Checkout: shipping options, taxes, discounts/coupons, payment, order confirmation.
    • Order history for users; guest order lookup by email+order ID.
  3. Inventory and pricing
    • Real-time inventory/availability per SKU (format/edition/warehouse).
    • Promotions/discounts; price snapshots at order time.
  4. Payments
    • Integrate with a PSP; support cards and wallets; handle 3DS/SCA when applicable.
  5. Notifications
    • Email confirmations for order placement, payment, and shipment.

Non-Functional Requirements

  • Scale read-heavy catalog/search; low-latency PDP and cart.
  • Strong consistency for inventory reservation and order state transitions.
  • High availability (multi-AZ; consider multi-region DR).
  • Security and privacy (PII, PCI scope minimization).
  • Observability with actionable SLOs.
  • Idempotent APIs for checkout/payment/order creation.

Deliverables

  • APIs: search/browse, product detail, cart, checkout, payments, order history.
  • Data model: books, authors, inventory, pricing, users, carts, orders.
  • Service decomposition and storage choices (SQL/NoSQL), search indexing, caching/CDN, read/write patterns.
  • Address inventory reservation and consistency, idempotency, security/privacy, observability, capacity planning, scalability/availability/fault tolerance.

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More Amazon•More Software Engineer•Amazon Software Engineer•Amazon System Design•Software Engineer System Design
PracHub

Master your tech interviews with 8,000+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.