3.36Enabling HttpClient Pooling Management

Created on Aug 17, 2026~2 min read

By default, a new HttpClient instance is created each time an HTTP request is sent. However, in scenarios that require frequent requests, this approach may cause performance bottlenecks and excessive memory usage, especially during stress testing. To optimize performance, we can enable HttpClient pooling management so that HttpClient instances are reused throughout requests.

cs
var httpRequestBuilder = HttpRequestBuilder.Get("https://furion.net/")                            .UseHttpClientPool();   // Enable HttpClient pooling management// Send requests in a loopfor (var i = 0; i < 10; i++){    await httpRemoteService.SendAsync(httpRequestBuilder);}// Release resources to avoid memory leakshttpRequestBuilder.ReleaseResources();