Skip to content

mfreedm52/asyncrest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

asyncrest

Examples of the various options we have to do async apis in Java Spring boot

WebClient is the new alternative to AsyncRestTemplate. It does the job but it is a little bit cumbersome. Also if our web calls are all in rest templates, it would involve changing the standard.

The other two examples use CompletableFuture class, which allows for asynchronous processing of otherwise synchronous code.

We could choose to use the completableFuture class directly (Test titled RunRestAsAsync) or create a wrapper class (Test titled ParallelRestClassTest)

We will also want to have a wrapper class for the second issue of debugging information. We could add the interceptor logic as a part of the wrapper class so that we don't need to worry about it when making each individual web call.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages