Design Caching for Product Detail Pages During Sale Spikes

Last updated: November 29, 2026

Quick Overview

Design the caching strategy for Flipkart product detail pages so they stay fast when traffic jumps 10x or more during sale events, while keeping price, offers and stock fresh enough to avoid customer complaints.

Flipkart
System Design
Software Engineer
Flipkart
November 29, 2026
Software Engineer
System Design Round
System Design
Medium

0

0

0 solved


Design the caching strategy for Flipkart product detail pages so they stay fast when traffic jumps 10x or more during sale events, while keeping price, offers and stock fresh enough to avoid customer complaints.

Product detail pages aggregate data from catalog, pricing, offers, reviews, seller and delivery services, and sale traffic concentrates on a small set of hot items. The interviewer checks layered caching, data freshness by field type, and protection against stampedes on hot keys.

What the Interviewer Expects
  • Split the page into static, semi static and highly dynamic parts
  • Use layered caches: CDN, edge or gateway, service level, local in process
  • Pick invalidation strategies per data type (event driven versus TTL)
  • Prevent cache stampede on hot or expiring keys
  • Handle hot key concentration on a single cache node
  • Pre-warm before the sale
Key Topics to Cover
caching
CDN
cache invalidation
cache stampede
hot keys
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
  • A price changes at midnight when the sale starts; how do you make sure no one sees the old price at checkout?
  • How would you detect a hot key in real time?
  • What would you do if the cache cluster lost half its nodes?
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: render product detail with title, images, specs, price, offers, stock, delivery promise, ratings.

Non functional: p99 under 150 ms at 10x normal traffic, price and stock shown wit...

High-Level Design

Client -> CDN (images, static JS, and long lived catalog JSON) -> API gateway -> PDP aggregator -> per domain services, each fronted by a Redis cluster, with an in process cache (Caffeine styl...


Submit Your Answer
Markdown supported