Design a Product Detail Page Cache That Survives Prime Day

Last updated: November 29, 2026

Quick Overview

Design the caching layer behind Amazon product detail pages so it keeps serving fast, mostly fresh pages when Prime Day traffic spikes 10x and a few hot deals take a disproportionate share of reads.

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

0

0

0 solved


Design the caching layer behind Amazon product detail pages so it keeps serving fast, mostly fresh pages when Prime Day traffic spikes 10x and a few hot deals take a disproportionate share of reads.

A common Amazon onsite design prompt for SDE II and above, because the detail page is assembled from dozens of backend services and a cache failure cascades into all of them. Interviewers check whether you can reason about hot keys, stampedes and freshness per field rather than treating the page as one blob.

What the Interviewer Expects
  • Split the page into fragments with different freshness needs (title vs price vs availability)
  • Handle hot keys for lightning deals without overloading a single cache shard
  • Prevent cache stampedes on expiry and on cold start
  • Keep price and buy box data consistent enough to avoid charging a different price at checkout
  • Quantify hit rate, latency budget and fleet size
Key Topics to Cover
Fragment caching
Hot key replication
Request coalescing
Stale-while-revalidate
Cache warming
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 pre-warm caches before a deal goes live at a known time?
  • What happens if the cache cluster loses a third of its nodes mid-event?
  • How do you invalidate a price change across every region within seconds?
  • Would you cache rendered HTML or service responses, and why?
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: serve the detail page for any ASIN, composed of catalog data, images, reviews summary, price, buy box winner, delivery promise and availability. Non-functional: p99 under 200 ms fo...

High-Level Design

A page composition service fans out to fragment providers. Each fragment has its own cache policy:

  • Static fragments (title, bullets, images): long TTL, cached in a distributed cache (ElastiCache...

Submit Your Answer
Markdown supported