I want to consume a rest api from my code. Now, for this, I can use WebClient or HttpClient.
However, HttpClient has connection pooling support, as mentioned in the documentation.
every HttpClient instance uses its own connection pool, isolating its requests from requests executed by other HttpClient instances
So, does WebClient
has connection pooling support?
as I will be calling this api many a times, hence it do not want "creating new connections for every call" be a overhead for performance during api calls.
So which one should I be using, for better performance?