Skip to content

A single client for multiple requests vs one client for each request #2606

Answered by jmklix
fyse-nassar asked this question in Q&A
Discussion options

You must be logged in to vote

@github-actions proposed-answer

Can a S3 client handle multiple requests in parallel?
For instance, can a single client execute 10 getObjects calls simultaneously across different threads?
Is this approach considered safe, or should each request be made using a unique client?

Yes, the S3 client can handle multiple requests and it is considered safe. It is recommended to only ever use one client and to avoid using multiple clients.

If the first scenario is correct, what are the limiting factors that might affect the client's performance?
Are there any upper limits to the number of requests the client can effectively handle?

The only limits is the network throughput and cpu. You should …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@fyse-nassar
Comment options

@bhavya2109sharma
Comment options

Answer selected by jmklix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
attention This discussion needs attention.
3 participants