Design Price and Product Page Caching for Black Friday
Last updated: November 29, 2026
Quick Overview
Design the caching strategy that keeps walmart.com item pages fast during a Black Friday launch, when traffic jumps by an order of magnitude and prices change at a precise start time. Cached pages must never show a stale price at checkout.
Walmart Labs
November 29, 20260
0
0 solved
Design the caching strategy that keeps walmart.com item pages fast during a Black Friday launch, when traffic jumps by an order of magnitude and prices change at a precise start time. Cached pages must never show a stale price at checkout.
Holiday events are the stress test that shapes much of Walmart's web architecture, and teams rehearse them for months. The interviewer wants a layered cache design (CDN, edge, service caches), a clear split between cacheable and personalized content, and a plan for synchronized price flips and invalidation.
What the Interviewer Expects
- Split the page into static, semi-static and dynamic fragments
- Use CDN caching with surrogate keys for targeted purges
- Handle a scheduled price change at an exact time without a cache stampede
- Keep the price used at checkout authoritative
- Protect origins with request coalescing and stale-while-revalidate
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you flip prices for 5,000 deal items at 7 PM Eastern without purging everything?
- How do you handle a deal that sells out in minutes?
- What metrics would you watch in the war room?
- How does this change for a store-specific price?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Item pages for about 100M items, with a few thousand Black Friday deal items getting most traffic. Peak 10x normal. Page TTFB under 200 ms globally. Prices must change exactly at the event start and t...
High-Level Design
Break the page into fragments:
- Static shell and assets (JS, CSS, images): long CDN TTL, versioned URLs.
- Item content (title, specs, images, reviews summary): CDN cached by item, TTL of hou...