Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3672

How to deal with exponential call hierarchy in Microservices Architecture?

$
0
0

I have the following call hierarchy in my architecture:

BFF → Microservice A → Microservice B → Anticorruption Layer → Legacy System

In each service above I am using the retry pattern to deal with HTTP resiliency while one service request a resource in another service.

The problem becomes when, if I have a default policy of 3 retries for each request, this becomes exponential. For example, if my AntiCorruptionLayer is down and returning a 504 (Gateway timeout) and my BFF receives one request, it will retry for 3 times, while service A will retry for 9 times and B for 27 times for just one request!

How to deal with this problem? Any tips?


Viewing all articles
Browse latest Browse all 3672

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>