S
S
SuicideBlonde2018-04-13 00:51:06
Java
SuicideBlonde, 2018-04-13 00:51:06

How do you create an http client for Amazon S3?

Who creates AmazonS3Client in java sdk in their application?
In a multi-threaded high-load application, at the end of each request, an upload is made to S3.
Interested in what are the ways not to create every time AmazonS3Client before calling putObject.
What is the practice of loading data on S3 in a high-load application? Are you using an asynchronous client?
And in general, is it worth thinking about the task here so that you can load as many objects as possible from one AmazonS3Client via putObject?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Aleksandrovich, 2018-04-21
@tyanigor

Interested in what are the ways not to create every time AmazonS3Client before calling putObject.

Place it in the global context with a singleton scope and implement it. Use asynchronous methods.
ps It is necessary to read the documentation on the client.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question