Towards Fault Tolerant Web Service Calls in Java

Photo by Scott Webb on Unsplash

In the Beginning

Once upon a time, I needed to call a microservice that could return a lot of data. So much data, that the request would often timeout. The usual solution to this is to request smaller chunks of data, also called pages. A page request takes two parameters, often called limit and offset. Limit is the number of items to be returned. Offset is the number of…