I am writing a web service which makes very frequent calls to another web service.
Currently, I have created a wrapper over HttpClient which has a static member of HttpClient. Once the HttpClient has been initialized, I always return that.
This was done in order to avoid always creating and disposing a HttpClient.
However from previous experience I know that Microsoft creates Implicit connection pooling for certain objects (like SqlConnection) and therefore there is no need for a programmer to cache the connection because they are pooled. anyone who uses the same connection string always gets the same connection from the pool.
is it the same case with HttpClient? or should I continue to use my caching mechanism?
val it: unit=()