Posted In: Spring, Spring REST

Spring Asynch Rest Client – Using Apache HTTPComonents library example2

Usecase Application needs to use Apache HTTP Component library to call REST services. Spring provides HttpComponents factory to do that. By default Spring will use default JDK capabilities to call REST services. Maven entry for httpasyncclient  

Read More

Tags:

by , on July 24th, 2017

Posted In: Spring, Spring MVC

Spring Asynch Rest Client – Using Netty library example2

Usecase Application needs to use Netty library to call REST services. Spring provides Netty factory to do that. By default Spring will use default JDK capabilities to call REST services. Maven entry for netty  

Read More

Tags:

by , on July 24th, 2017

Posted In: Spring, Spring REST

Spring Asynch Rest Client – Using Netty library example1

Usecase Application needs to use Netty library to call REST services. Spring provides Netty factory to do that. By default Spring will use default JDK capabilities to call REST services. Maven entry for netty  

Read More

Tags:

by , on July 23rd, 2017

Posted In: Spring, Spring REST

AsyncRestTemplate – Rest call with ResponseExtractor, AsyncRequestCallback

Usecase Your application calls rest service which takes some time to complete. You need to respond to the client with received message immediately. Once you receive the response do some action.

Read More

Tags:

by , on July 20th, 2017

Posted In: Spring, Spring REST

AsyncRestTemplate – Callback

Usecase Your application calls rest service which takes some time to complete. You need to respond to the client with received message immediately. Once you receive the response do some action. OUTPUT – Body printed after Callback

Read More

Tags:

by , on July 19th, 2017

Posted In: Spring, Spring REST

AsyncRestTemplate – Multiple Rest Calls

Usecase 1. Multiple REST services needs to be called to get all data. e.g. First service returns Name. Second service returns Address. Response needs both Name and Address 2. Both services are independent to each other. 3. Service response time is high In these cases we could use AsyncRestTemplate. Please note : Call to ListenableFuture..get() […]

Read More

Tags:

by , on July 18th, 2017

  • Categories