Skip to content

Stale data

Stale data is cached or replicated information that no longer matches the source of truth, either because the source changed after the copy was made or because the update was never propagated.

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

Redis

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

Etymology

Origin: compound

  • stale (adjective): from Old French estale, "standstill"
  • data (noun): from Latin data, "given things"

Semantic network

Stale datacachingCache invaCacheTTL

● broader ● narrower ● related

Broader

  • caching

Related

Used in the garden

Sources