Reputation: 371
My question is with reference to aws sdk for golang. There are two ways to download a file
I understand that Download uses concurrent GET requests to download a file. If this is the case, is not this always a better option? If not, could you please advise when to use GetObject method?
Upvotes: 5
Views: 4009
Reputation: 2498
GetObject
is a low-level call to S3 rest API. Downloader it's using it internally for concurrent download of chunks of the requested file. So, for example, it makes sense to use it in case you want to write your custom downloader. As an end user, you should stick with Downloader.
Upvotes: 5