Remote Cache Backendとは?
remote cache backendは共有ストアで、通常はobject storageまたは専用のcacheサービスであり、cache可能なbuildおよびtestの出力をその入力ハッシュをキーとして保持します。1台のマシンにのみ存在するcacheではなく、すべてのrunnerが同じbackendに読み書きします。これにより一度計算された結果をどこでも再利用できます。
なぜ重要か
CI runnerは通常ephemeralなので、ローカルのみのcacheは実行のたびに空から始まります。remote backendは、使い捨てのrunnerでcachingを有効に機能させるものです。あるtargetを最初にbuildしたrunnerがcacheを埋め、以降のrunnerは即座にhitを得ます。Latchkeyスタイルのmanaged runnerは、ネットワークのround-tripを安価に保つために、近くのcache backendと組み合わされることがよくあります。
関連ガイド
What Is Task Graph Caching?Task graph caching stores the output of each task keyed by its inputs so a build tool can replay results for…
What Is Cache Warming?Cache warming pre-populates a cache before it is needed so the first real requests hit a ready cache instead…
What Is a Negative Cache?A negative cache stores the fact that a lookup failed or a value is absent, so repeated misses can be answere…