Skip to content

Conversation

@AlexanderGolovlev
Copy link
Contributor

Bazel has support for compressed transfers from/to gRPC remote caches (#14041). However, this is not fully supported for HTTP protocol. This feature would allow to significantly decrease the network traffic for remote cache. The related issue is #23463.

In general, the HTTPCacheClient class can decompress the incoming HTTP content because it uses internally the HttpContentDecompressor from Netty library. But current implementation allows only "gzip" as acceptable encoding.
The version of Netty library used in Bazel has been updated recently to 4.1.110. This version supports much more compression methods than before. The suggested change allows using the new compression options with HTTP remote cache. "Zstd" compression is of particular interest because it is used in popular bazel-remote software.

Note: The suggested change forces the bazel-remote to send HTTP content with "zstd" encoding. For compatibility we may consider applying the --remote_cache_compression option to enable this functionality. I leaved it as is for now because "gzip" was used unconditionally.

@AlexanderGolovlev AlexanderGolovlev requested a review from a team as a code owner October 15, 2025 09:42
@github-actions github-actions bot added team-Remote-Exec Issues and PRs for the Execution (Remote) team awaiting-review PR is awaiting review from an assigned reviewer labels Oct 15, 2025
@fmeum fmeum requested a review from tjgq October 17, 2025 14:37
@tjgq tjgq added awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally and removed awaiting-review PR is awaiting review from an assigned reviewer labels Oct 17, 2025
@tjgq
Copy link
Contributor

tjgq commented Oct 23, 2025

FYI - we need to do some internal work before we can add support for Brotli, so we will submit this PR minus the Brotli changes for now. We will follow up with the Brotli changes at a later time.

@github-actions github-actions bot removed the awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally label Oct 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team-Remote-Exec Issues and PRs for the Execution (Remote) team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants