Stale-While-Revalidate
A caching pattern that serves recently cached data immediately while refreshing it in the background.
Why it matters
Metasearch fan-out architectures need resilience because upstream latency and data volatility are unavoidable. Cache, timeout and retry decisions affect not only backend performance but also whether the displayed offer is trustworthy. These concepts should be designed with SLOs, freshness and failure isolation.
What does it look like in practice?
When one supplier's p95 latency rises, timeout, circuit breaker and fallback cache may work together. A successful stale fallback can still increase price-quality risk.
Implementation questions
- What is the end-to-end latency budget?
- Are cache age and source timestamps retained?
- Which error classes are retried?
- Can one provider failure degrade every supplier?
Common mistakes
- Retrying every error class
- Optimizing cache hit ratio without freshness
- Allowing one provider to block the entire fan-out
Where does it appear in the travel stack?
Stale-While-Revalidate commonly appears across resilience layers. Its implementation should make source-of-truth, identity, freshness and transaction-ownership boundaries explicit.
Related terms
Related technical guides
Cache Invalidation Patterns for Travel Pricing
Design TTL, event invalidation, stale-while-revalidate and live-reprice boundaries for hotel and flight pricing.
Explore →Duplicate Booking After Retry Troubleshooting
Identify duplicate travel bookings created after timeout/retry, preserve the correct reservation and apply safe compensation.
Explore →Payment Authorized/Captured but Booking Unknown/Failed
Diagnose payment-booking divergence when payment succeeds while booking remains unknown or fails, then choose safe recovery and compensation.
Explore →Stale Availability / Offer Expired Troubleshooting
Diagnose stale availability and expired offers across freshness, cache, token and revalidation layers between search and booking.
Explore →Stuba: B2B Hotel Distribution API Profile
A technical profile of Stuba's hotel distribution APIs covering content, live availability, quote refresh, booking and cancellation workflows.
Explore →Booking.com Connectivity Integration Guide
Design Booking.com Connectivity with token authentication, canonical hotel models, ARI, reservation delivery, idempotency, reconciliation and monitoring.
Explore →