I have 1 api key that has a rate limit 1000req/1min.
I would like to somehow use 50% of that limit in service 1 and 50% of that limit in service 2. Let's say they're just 2 separate processes using the same api key. How could I implement distributed rate limiter like that?
https://www.jeremydaly.com/throttling-third-party-api-calls-with-aws-lambda/
Thread.sleep(...)
in between requests is a good place to start.