How to communicate API Limit between multiple applications?
We currently have 3 Spring boot applications (with multiple instances across machines each) that communicate with an API via HTTP that is not in our hands. This API has a limit on a per-day as well as on a per-month basis. When this limit is reached - and we reach this limit - the API will produce a HTTP 429. I usually expect a Header such as "rate limit: 300/800" in the responses of such an API to know how many requests can be done, but that is absent. Imagine each day/month the limit refreshes and each request I do counts as 1 against that limit, How would I keep track of the limit across all applications/instances, so we can stop sending once the limit is reached?
We currently have 3 Spring boot applications (with multiple instances across machines each) that communicate with an API via HTTP that is not in our hands.
This API has a limit on a per-day as well as on a per-month basis.
When this limit is reached - and we reach this limit - the API will produce a HTTP 429.
I usually expect a Header such as "rate limit: 300/800" in the responses of such an API to know how many requests can be done, but that is absent.
Imagine each day/month the limit refreshes and each request I do counts as 1 against that limit, How would I keep track of the limit across all applications/instances, so we can stop sending once the limit is reached?