Design Caching for Listing Pages During Traffic Spikes
Last updated: November 29, 2026
Quick Overview
When a viral listing or a big event (a World Cup final, a solar eclipse) sends huge traffic to listing detail pages, the backing services struggle. Design the caching layers that keep the listing page fast, while availability and price shown at checkout stay correct.
Airbnb
November 29, 20260
0
0 solved
When a viral listing or a big event (a World Cup final, a solar eclipse) sends huge traffic to listing detail pages, the backing services struggle. Design the caching layers that keep the listing page fast, while availability and price shown at checkout stay correct.
Listing detail pages on Airbnb combine slow-changing content (photos, description, amenities) with fast-changing data (availability, price). This is an approachable design question that checks whether you can split data by freshness needs and apply CDN, application, and request-coalescing caches sensibly.
What the Interviewer Expects
- Split page data by how often it changes and how wrong it can be
- Use a CDN or edge cache for static assets and public content
- Use a distributed cache (Redis or Memcached) with sensible TTLs and invalidation
- Never trust cached availability or price at checkout
- Prevent cache stampedes with request coalescing or 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 invalidate when a host edits the description?
- How would you cache a page that shows personalized prices for logged-in users?
- What metrics tell you the cache is working?
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
Serve listing pages with low p99 latency under 10 to 100 times normal traffic on a few hot listings. Content edits should show up within a minute or so. Availability on the page may be slightly stale,...
High-Level Design
Layers:
- CDN: photos and JS bundles, with long TTLs and hashed URLs.
- Edge or API cache for the public listing content blob (title, description, amenities, reviews summary), keyed by listi...