Skip to content
Advertisement

Tag: spring-resttemplate

Multiple RestTemplate calls for each Id in a List

I need to make multiple RestTemplate calls for each of the Id in a List<Ids>. What is the best way to perform this? I have used parallelStream(). Below code snippet is a similar scenario. employeeService.fetchEmployeedetails is a kind of restCall which will fetch all the employeeDetails. Is there any other way to tune the performance? Answer .parallelStream() does not guarantee

Advertisement