All Articles

Cache Invalidation at the Edge Is a Consensus Problem

Abbas Oveissi

Aug 24, 20263 min read

Voice briefing – 0:00

0:00 / 1:12

The number that matters is how long it takes the last POP to serve the new version.

We shipped a 300-POP edge tier expecting a hit-ratio problem. What we got was a correctness problem.

The purge is not a write

A purge request looks like a write to a single system, but it fans out to hundreds of independent caches with no shared clock.

You do not have a cache. You have an unsupervised replica set with a friendly CDN dashboard on top.
ts
const cacheKey = (path: string, v: number) => `${path}?__v=${v}`;

Voice Notes

0 voices

No Contributor Voice Notes yet — be the first to share one.

Contribute a Voice Note

Got thoughts on this Article? Record a Voice Note.

Contribute a Voice Note
Abbas's Thoughts