Thread Pinning The Hidden Threat in HttpClient’s
Java 21 introduced a new built-in HTTP client API called HttpClient to replace the older HttpURLConnection. HttpClient uses an asynchronous, non-blocking approach for better performance. However, its threading model includes one controversial design choice – thread pinning. In this comprehensive guide, we’ll dig into how it works, the issues it can cause, and techniques to…