I want to learn the best behavior for implementing a rate limiter. Say I have serviceA and serviceB where serviceA calls API_1 and API_2 in serviceB. Say that serviceB has implemented rate limiting for its APIs.
Is the usual practice to set rate limits per API, i.e., would API_1 have its own rate limit for serviceA and API_2 have another value of the rate limit? Or is it best practice to set rate limit values for serviceA irrespective of what APIs it calls in serviceB?