In Spring Boot,for making a Rest Client call currently creating RestTemplate using the new keyword in multiple classes.
RestTemplate restTemplate = new RestTemplate();
ResponseEntity<String> response = restTemplate.exchange(
Planning to create a single class that returns a same instance of RestTemplate, and using it for all the Rest calls.
Will it affect performance. What may be the drawbacks on performance or any other?
Also instead of creating a single RestTemplate, is using Pooling a better option? Thanks