home.social

#javanethttpclient — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #javanethttpclient, aggregated by home.social.

  1. 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.

  2. 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.