Introducing the new Apache5 HTTP client in Developer Preview #6267
Replies: 2 comments 2 replies
-
The new Apache5HttpClient works great for us (for DynamoDB client in our case). Simple drop in replacement with just import/classname renames and adding the We are anticipating using it quickly, so we can (finally) enable virtual threads. Any update on timelines for when this might get released out of Preview? |
Beta Was this translation helpful? Give feedback.
-
Apache 5 seems to be an improvement over apache 4, we don't see #5753 happening anymore for example. But under load we sometimes get the following:
We use defaults of the http client configuration |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We're excited to announce the Developer Preview of Apache 5 HTTP Client for the AWS SDK for Java 2.x.
For more information, check our AWS Developer Tools Blog Post.
Supporting the Apache 5 HTTP client brings key improvements like compatibility with virtual threads in Java 21 and logging flexibility through SLF4J. Similar to our current Apache4-based client, this new client supports only synchronous operations.
Getting Started
To get started, first add the new
apache5-client
dependency to your project:Since it's a Developer Preview release, the version must have the
-PREVIEW
suffix.Then, configure any AWS service client to use the new AWS SDK Apache 5 HTTP client:
If you wish to customize the settings, you can use the Apache5HttpClient.builder:
Developer Preview
As a reminder, the Apache5 HTTP client is being released as a Developer Preview, so the goal is to gather feedback from early adopters and it can lead to redesigns and breaking changes, meaning it's not suitable for production environments.
Test it out today and let us know how the new client works for you, we'd love to hear your feedback. If you have questions, find a bug or have a feature request for the client to better suit your needs, please reach out to us by creating a GitHub issue or replying in this Github Discussion thread.
Beta Was this translation helpful? Give feedback.
All reactions