Reputation: 635
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?
Upvotes: 2
Views: 261
Reputation: 21
One solutions could be:
Another solutions could be:
Does it make sense?
Upvotes: 0