Design Near-Real-Time Search Index Updates for Price and Stock

Last updated: November 29, 2026

Quick Overview

Design how Amazon product search reflects price changes, stock-outs and new offers within a minute, across a catalog of hundreds of millions of products, without rebuilding the index.

Amazon
System Design
Software Engineer
Amazon
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

0

0 solved


Design how Amazon product search reflects price changes, stock-outs and new offers within a minute, across a catalog of hundreds of millions of products, without rebuilding the index.

Search showing an out-of-stock item or a stale price costs conversions and trust, so search infrastructure teams ask this at senior levels. The interviewer is checking how you separate slowly changing text fields from fast-changing attributes and keep index updates cheap at high write rates.

What the Interviewer Expects
  • Classify fields by update rate and searchability
  • Use a partial-update path for hot attributes
  • Order and coalesce updates per product
  • Keep a full rebuild path for consistency
  • Define freshness SLOs and measure them
Key Topics to Cover
Inverted Index
Partial Updates
Event Coalescing
Index Sharding
Freshness
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How would you prevent a flash sale from overwhelming the indexing pipeline?
  • Do you filter out-of-stock at index time or query time, and why?
  • How do you guarantee the index eventually matches the source of truth?
  • How would you roll out a new analyzer that needs every document reindexed?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: price, availability, Prime eligibility, and buy box offer update in search results within 60 seconds; titles and descriptions within hours is fine. Non-functional: roughly 500M products, t...

High-Level Design

Product changes flow from catalog, pricing and inventory services as events into Kafka, keyed by ASIN. An Indexing Router splits them: text and taxonomy changes go to the slow path (batched document r...


Submit Your Answer
Markdown supported