Definition
What it is
Stale data is everywhere: a cached page shows yesterday's price, a read replica is 500ms behind primary, a CDN edge serves an old asset. Staleness is a property, not a bug — the question is whether the staleness window is acceptable.
Why it matters
Stale data costs correctness (wrong price, wrong inventory, wrong permission) and trust. Every caching layer trades it for speed; the design decides the window.
Staleness window
Layer | Typical window | Mitigation |
|---|---|---|
Browser cache | Minutes to days | Cache-Control + versions |
CDN edge | Seconds to minutes | Purge by tag |
0 (write-through) to hours (TTL) | Invalidation + TTL | |
Read replica | 10ms–1s | Read-your-writes routing |
Application cache | Variable | Explicit invalidation |
Origin
The term entered computing with replicated databases in the 1980s (eventual consistency) and intensified with web caches in the 1990s.
Evidence
FAQ
- Stale vs inconsistent?
Stale means outdated; inconsistent means two readers see different values. Staleness usually causes inconsistency but not always.
- How to avoid it?
Reduce the window: shorter TTL, write-through, explicit invalidation, purge-by-tag.
- Is stale data always bad?
No. A 1-hour-old article is fine; a 1-minute-old permission is not.
- How to measure it?
Instrument replication lag and cache age; alert on threshold.
Connections
Vogels (2008). Eventually Consistent. https://doi.org/10.1145/1466443.1466448
RFC 9111 (2022). https://www.rfc-editor.org/rfc/rfc9111.html
Etymology
Origin: compound
stale(adjective): from Old French estale, "standstill"data(noun): from Latin data, "given things"
Semantic network
● broader ● narrower ● related
Used in the garden
Sources
Vogels (2008). https://doi.org/10.1145/1466443.1466448
RFC 9111 (2022). https://www.rfc-editor.org/rfc/rfc9111.html