Resilience 4j
Introduction
Sometimes, microservice reply on the response from another microservice which make a call chain
However, if the one of the service is down, the entire chain will get affected
Resilience is a fault-tolerant library so as to handle the case that the down of the microservice or the slow response of the microservice

Timeout
If the response time is longer than the timeout that we set, the default fallback message will be returned which is also defined my us
Retry
We can set the number of retry of calling the api of microservice, but also the interval between each call, if the number of retry is exceed, the fallback message will be returned
Last updated
Was this helpful?