Negative Cacheとは?
negative cacheは、not-foundのlookupや既知のbuild missなど、結果の不在を記録し、同一の将来のクエリを再試行するのではなくcacheから応答できるようにするものです。失敗するかnothingを返すと分かっている操作を繰り返し実行するコストを節約します。negativeなエントリは通常、値が現れたら回復できるように短い有効期限を持ちます。
なぜ重要か
negative cachingがないと、存在しないものへのリクエストの流れが毎回高コストなバックエンドを叩き続けます。missをcacheすることでそれを安価なlookupに変え、無駄な負荷からバックエンドを守ります。リスクは陳腐化です。negativeなTTLが長すぎると、その後作成された値を隠してしまいます。
関連ガイド
What Is Cache Stampede Protection?Cache stampede protection prevents many clients from all recomputing the same missing entry at once when a ho…
What Is a Remote Cache Backend?A remote cache backend is shared storage where build and test caches live so many machines and CI runs can re…
What Is Cache Warming?Cache warming pre-populates a cache before it is needed so the first real requests hit a ready cache instead…