Skip to content

chore(JavaDocs): detail thread saftey of SDK Client Builders #2048

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 13, 2024

Conversation

texastony
Copy link
Contributor

@texastony texastony commented Oct 6, 2024

Issue #, if available:

The AWS SDK for Java's Service Client builders are not thread safe.
Crypto Tools customer's have reported odd,
occasionally disruptive behavior when using them
in a concurrent setting.

As such,
Crypto Tools should make it clear how to set a KMS Client
in a thread safe manner.

Which can be done via the Regional Client Supplier.

Additionally,
we can improve on the Java Documentation to highlight that
Builders are not thread safe,
and that proper Builder suppliers MUST be used,
or customers SHOULD use the alternative client configuration methods.

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Check any applicable:

  • Were any files moved? Moving files changes their URL, which breaks all hyperlinks to the files.

@texastony texastony requested a review from a team as a code owner October 6, 2024 20:21
Copy link
Contributor

@seebees seebees left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@seebees seebees merged commit 86d5b62 into master Nov 13, 2024
45 checks passed
@seebees seebees deleted the tony/example-kms-mkp-thread-safe branch November 13, 2024 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants