简体   繁体   中英

Batch calls to Google Cloud Storage API from C#

I'm implementing an interface that will let us replace an SFTP server with Google cloud storage.

One of the methods is to recursively delete a directory, which could cause hundreds or thousands of deletes.

Using StorageClient.DeleteObject will cause one HTTP request for each delete.

I see that Google Cloud Storage has a batch API which can handle up to 100 operations in a batch.

Is it possible to perform batch operations from the C# client? (I cannot find any documentation on this).

I have been looking at the documentation for the dotnet library , and trying it by myself, but it's not possible.

I would recommend opening an issue in the official Github repository for the Google Cloud dotnet library , talking about this very same request.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM