Skip to content

rishabhverma17/concurrent-with-caching-spring-boot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot Concurrency

Description

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"
}

About

This project deals with running multiple task in Parallel using Java Callable, Future and CompletableFuture.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages