mercredi 20 octobre 2021

Add a custom circuit breaker to my java springboot App

So I have two springboot application one(service) is used to implement some business logic and to communicate(send and recieve) with a third party service I have another springboot App(client) which makes the communication with third party happen. So the flow is like:-

Service -> Client -> Third party APIs

Now the problem is that these third party apis has rate limits which they send through their headers. I want to throttle my client so that when it reaches 95%. Client stop all my request by Service to the third party for 30 min. Is there anyway to achieve this. Considering client has no DB.

Aucun commentaire:

Enregistrer un commentaire