GA Release of the AWS SDK Java 2.x HTTP Client built on Apache HttpClient 5.6 | Amazon Web Services

GA Release of the AWS SDK Java 2.x HTTP Client built on Apache HttpClient 5.6 | Amazon Web Services

If you’re using the Apache HttpClient 4.5.x with the AWS SDK for Java 2.x, you may have encountered dependency alerts for Jakarta Commons Logging (JCL) dependencies, concerns about long-term maintenance support, or compatibility issues with Java 21’s virtual threads. The new Apache 5 HTTP client solves these problems.

In this post, you’ll learn how to add the Apache 5 HTTP client to your project, configure it for your needs, and migrate from the 4.5.x version.

What’s new

  • Modern logging: Replaces the outdated JCL dependency with Simple Logging Facade for Java (SLF4J), giving you better compatibility with modern logging frameworks like Logback and Log4j2
  • Virtual thread support: Full compatibility with Java 21’s virtual threads for improved concurrency
  • Active maintenance: Apache HttpClient 5.x receives regular security updates and bug fixes

This client is available alongside the existing SDK HTTP clients:…

https://aws.amazon.com/blogs/developer/ga-release-of-the-aws-sdk-java-2-x-http-client-built-on-apache-httpclient-5-6/