Skip to content

Default thread count for Async client #2392

Open
@pankajdighe

Description

@pankajdighe

This is regarding the following statement in document https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/asynchronous.html#advanced-operations

 By default, 50 Threads are generated for each asynchronous client.

I followed few discussions in previous issues and came across this line https://github.com/aws/aws-sdk-java-v2/blob/master/core/sdk-core/src/main/java/software/amazon/awssdk/core/client/builder/SdkDefaultClientBuilder.java#L301

could you please help me understand this configuration? Does this mean that default number of threads is not 50 and depends on number of processors?

could you please provide more context on following statement in same documentation?

This abstraction reduces the risk of an application breaking the async process if developers choose to stop or sleep threads

Also I would like to know if there is any documentation which describes the thread pool configuration while using AWS Async client?

Describe the issue

Links

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationThis is a problem with documentation.p3This is a minor priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions