Parallel upload and composition using JAVA libraries of google cloud

892 Views Asked by At

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 .

1

There are 1 best solutions below

2
On

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.