A rate limiter for both API services and consumers