Home / Companies / BuildBuddy / Blog / Post Details
Content Deep Dive

Bazel's Remote Caching and Remote Execution Explained

Blog post from BuildBuddy

Post Details
Company
Date Published
Author
Brentley Jones
Word Count
1,728
Language
English
Hacker News Points
-
Summary

Bazel's remote caching and execution capabilities are designed to improve build performance by reducing redundant work. Actions, which represent tasks that need to be performed during a build, form an action graph. Spawns, which encode information needed to execute actions, determine if/how the spawn should utilize remote caching or execution. Bazel's remote-cache strategy checks for cached results in both local and external caches, while its remote strategy executes actions on a remote executor. The disk cache can be used with remote execution starting from Bazel 5.0. Dynamic execution allows for parallel local and remote execution of the same action, using the output from the first branch that finishes. Remote caching and execution can significantly improve build times when properly configured and utilized.