Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
I am currently working on migrating from ElasticSearch version 1.7.2 to AWS OpenSearch Service (OpenSearch 2.8.0).
Describe the issue:
I have an option to use either Apache HttpClient 5 Transport or RestClient Transport Java client. What is the difference between these two and which one does OpenSearch team recommends?
The Apache HttpClient 5 Transport is preferable to RestClient Transport (we are going to deprecate it soon [1]). Besides just HTTP/2 support (which is coming in OpenSearch 3.0) and many other improvements, the Apache HttpClient 5 Transport has no dependencies on any OpenSearch components. If you have no strong reasons to stick to RestClient Transport, the Apache HttpClient 5 Transport is a way to go. Thank you.