Bazel Knowledge Hub
VirtusLabCareers
Contact usContact us
Basic levels
PThe Philosophy
0The Anatomy
1The Operator
2The Mechanic
Advanced levels
3The Maintainer
4The Architect
Expert levels
5The Consultant
6The Infrastructure
6.1Shared Bazel Services
6.2Shared Remote Cache
1How Remote Cache Keys Work2Setting Up a Shared Remote Cache3Securing a Shared Remote Cache4Wrong Cache Result Diagnostics5When a Cache Hit Is Slower6Remote Cache Lifecycle7Directory Outputs and Tree Artifacts
6.3Remote Execution Infrastructure
6.4Execution Modes and Persistent Workers
6.5Bazel CI at Scale
6.6Build Service Operations
6.7Build Supply Chain and Releases
Handbooks
HMonorepo Handbook
Focus
  • Core — must-know in this level, handbook, or guide
  • Recommended — most will need it
  • Extra — niche — safe to skip
  1. 6 The Infrastructure
  2. /6.2 Shared Remote Cache
  1. 6 The Infrastructure
  2. /6.2

6.2 Shared Remote Cache

Sections in this chapter · 7

6.2.1How Remote Cache Keys Work

Reason about cross-client cache identity across declared action dimensions, local state, HTTP and REAPI caches, hidden inputs, and bounded path mapping.

6.2.2Setting Up a Shared Remote Cache

Deploy a maintained shared cache and prove remote reuse across two isolated Bazel clients.

6.2.3Securing a Shared Remote Cache

Separate cache identities, permissions, namespaces, and writer trust so one producer cannot silently poison every consumer.

6.2.4Wrong Cache Result Diagnostics

Attribute missing or wrong shared-cache results, bound the affected cohort, and recover without destroying evidence.

6.2.5When a Cache Hit Is Slower

Decide whether one class of cache reuse saves latency and cost after lookup, transfer, and materialization are counted.

6.2.6Remote Cache Lifecyclerecommended

Design AC/CAS retention and cold-cache recovery so metadata never promises unavailable outputs and repopulation stays within fleet capacity.

6.2.7Directory Outputs and Tree Artifactsrecommended

Diagnose high-cardinality directory outputs by structure and per-file work, not aggregate bytes alone.

©2026 VirtusLab