Header

Monthly Archives: November 2018

A singleton REST client with retry mechanism in Java

Hi All, There are instance when RESTful service don’t respond back. The issues can be several. However, we still want to get the response from that service. In those scenarios we put a retry mechanism. The most common issue that we face is Read Timeout and Connection Timeout. The below code handle that scenario and …
Read more

43 total views, no views today

How to call multiple URLs asynchronously using Java 8

Hi guys, Request you to check out the previous post before proceeding – http://blog.niteshapte.com/2018-03-22-how-to-create-a-generic-executor-service-for-asynchronous-calls.htm. This is basically to give the idea how we are going to achieve multiple URL calls – asynchronously. Below solution is good at those places where we need to get data from different rest services in parallel. Using the received data …
Read more

32 total views, 1 views today