Pattern for checking multiple rate limits without actually acquiring permits in Java
Problem: I have a client app in Java that needs to adhere to multiple rate limits. For example, req/second, req/minute, req/hour…etc. The app will only permit a call if the app is within all of the limits. When I implement the rate limiters using either Resilence4J or Google Guava, it ends up consuming permits for […]