title: Spring RestTemplate configuration strategies to call multiple rest services from a single API
body: <p>I have a scenario where there is an aggregate endpoint to call multiple downstream systems which are RESTful and gives back the consolidated response from all these systems.  </p>
  
  <p>I am currently using a rest template that is configured as a singleton bean and injects it to the corresponding services to make the rest call. The RestTemplate is using the default CloseableHttpClient as the HttpClient, which will close the connections once the request is successful.</p>
  
  <p>Would this be a good approach or would it be better if the rest template is configured per service that is calling its RESTful service? </p>