Pratap
Pratap

Reputation: 695

When NOT to use HTTP Connection Pooling?

In my Java application, I am using a single object of RestTemplate for calling one HTTP endpoint. The resttemplate is a default one (instantiated by new RestTemplate() at the time of application start up) and so it doesn't has any connection pooling. Since the frequency of its usage is very less (about 50 calls per day), I am of the opinion that connection pooling should not be used as it will add to the overhead. Am I correct in my assumption?

Is there any standard use-case where HTTP connection-pooling should not be used?

Upvotes: 1

Views: 238

Answers (0)

Related Questions