Try
↑ ↓ move↵ openesc close

Interview prep / CDNs and edge caching

Junior · CDNs and edge caching · System design interview question

What is a cache hit ratio, and what moves it?

Sketch your own answer first, then compare it with the one below.

A strong answer

It is the share of requests the cache answers without going to the origin. A higher ratio means less origin load and lower latency.

Three things move it most. A longer TTL lets each copy serve more requests. A cache key that holds only what changes the response lets requests share copies. Skewed traffic, where a few objects are very popular, gives caches more repeats to answer.

Spreading the same traffic over more caches lowers it, since each cache sees fewer repeats.

Sources

Learn it by running it

The cdns and edge caching lesson explains the mechanism behind this question, and its lab lets you change the parameters and watch the effect.

Your progress is saved in this browser. Sign in to keep it on every device. Privacy · Terms