简体   繁体   中英

Parallel upload and composition using JAVA libraries of google cloud

I am able to do resumeable upload using the google cloud libraries . But it uploads the chunks in sequential manner .

Is there any way where we can parallelize the upload and then use compose operation as it happens in Gsutil using the client libraries ? .

I read somewhere that google client libraries are not thread safe .

I know there is way of doing the same using the API calls but I don't want to make multiple calls to the same api .

You can use Java to perform parallel uploads as you can see in this Java client library function . I didn't find a tutorial/working code demonstrating this (not even in the tutorial using the code ).

I didn't have time to create working code but you could give it a try. I already asked to update the tutorial with an example.

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