The other day I learned that the #javaNetHttpClient should be cached and reused. It doesn't really matter if you have 1 or 2 calls. It does matter if you have thousands.
This client became available with #Java11.
The problem is lingering opened sockets, waiting for a response from the communication partner. They cost memory and system resources. Reusing the #HttpClient allows it to streamline itself.