This project deals with running multiple task in Parallel using Java Callable, Future and CompletableFuture.
Here we are also using 'Ehcache' to demonstrate caching and reducing computing again for the same task.
Run all the tasks :
Get Value form Cache (reducing re-computation) :
Clear Cache :
Sample Response of first 2 API
{
"id":1234,
"serviceOneResponse":"Response From Service 1",
"serviceTwoResponse":"Response From Service 2",
"serviceThreeResponse":"Response From Service 3",
"independentServiceOneResponse":"Response from IDS 1",
"independentServiceTwoResponse":"Response from Independent Service 2"
}