I have read some tutorials about implementing REST client in java web application that use SPRING to manage beans.
Every example I found, every time doing a REST request it creates new RestTemplate.
Normally web applications use singleton spring bean.
So I want to know when what is the best practice to use RestTemplate in Spring configures application ?
Use singleton RestTemplate ?
Create RestTemplate in every request. ?
Please advise and describe all situations.