Cache.bz Engineering

Engineering at the edge.

How we build and run a 52-city edge network: protocols, caching internals, performance work and honest post-mortems, written by the teams who do the work.

Latest post · Performance

Shipping zstd compression at the edge

Browsers started asking for zstd this year. Here is how we added a third content encoding to 52 cities without tripling cache storage, and why dynamic responses benefit most.

Edge Runtime team4 min read

Read the post →

All posts

Incidents

Post-mortem: elevated purge latency on 28 October

For 26 minutes, purges in Europe took up to 40 seconds to reach every location. Cached content was served normally throughout. What happened, and the three changes we made.

Reliability Engineering4 min read
Protocols

TLS 1.3 0-RTT: where we use it and where we refuse to

Early data can save a full round trip for returning visitors. It can also replay requests. How we decide which requests may use it, and the numbers from a year in production.

Protocols team4 min read
Images

AVIF at the edge: what we learned encoding two billion images

AVIF images are about half the size of JPEG, but encoding them is slow. How we chose encoder settings, kept tail latency down, and when we still serve WebP.

Image Pipeline team4 min read
Architecture

Origin shield and request collapsing: turning 52 misses into one

Without a shield, every edge location fetches its own copy from your origin. How our second cache tier and request collapsing cut origin traffic by up to 91% for a video customer.

Edge Runtime team4 min read
Architecture

Purge by meaning: how cache tags scale to billions of objects

Tags let you purge every page that shows an article, wherever it lives. Inside the per-location tag index, the memory budget, and how a tag purge reaches 52 cities in 150 ms.

Edge Runtime team4 min read
Network

How we take a sick location out of service in under a second

Anycast makes failover a routing decision. The hard part is deciding when a location is unhealthy, and not flapping. Inside our health quorum, BGP withdrawals and hold-down timers.

Network Engineering4 min read