Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[internal] use CAS BatchReadBlobs API for small blob reads (Cherry-pick of #15969) #15997

Merged
merged 1 commit into from
Jun 29, 2022

Conversation

tdyas
Copy link
Contributor

@tdyas tdyas commented Jun 29, 2022

In #12537, Pants learned how to send small blob writes to a remote store via the BatchUpdateBlobs API of the REAPI instead of the ByteStream.Write streaming API. This PR similarly teaches Pants how to use the BatchReadBlobs API for small blob reads instead of the ByteStream.Read API.

The goal is to reduce the overhead of small blob reads by avoiding the multiple message exchanges required by the streaming API.

Note: This PR does not batch multiple small blob reads together, which is an approach that could be worthwhile to evaluate in the future.

…d#15969)

In pantsbuild#12537, Pants learned how to send small blob writes to a remote store via the `BatchUpdateBlobs` API of the REAPI instead of the `ByteStream.Write` streaming API. This PR similarly teaches Pants how to use the `BatchReadBlobs` API for small blob reads instead of the `ByteStream.Read` API. 

The goal is to reduce the overhead of small blob reads by avoiding the multiple message exchanges required by the streaming API.

Note: This PR does not batch multiple small blob reads together, which is an approach that could be worthwhile to evaluate in the future.
# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
@tdyas tdyas added the category:internal CI, fixes for not-yet-released features, etc. label Jun 29, 2022
@tdyas tdyas requested review from stuhood and Eric-Arellano June 29, 2022 15:35
@tdyas tdyas merged commit bcbfda5 into pantsbuild:2.13.x Jun 29, 2022
@tdyas tdyas deleted the cp_reapi_batch_read branch June 29, 2022 17:22
@stuhood stuhood mentioned this pull request Jun 29, 2022
tdyas pushed a commit to tdyas/pants that referenced this pull request Jun 30, 2022
tdyas pushed a commit that referenced this pull request Jun 30, 2022
…herry-pick of #15969) (#15997)" (#16017)

This reverts commit bcbfda5.

[ci skip-build-wheels]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:internal CI, fixes for not-yet-released features, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants