Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

When Spring Cloud API Gateway Ratelimit is being used with Redis, X-RateLimit-Remaining being -1 in the response header indicates that an error occurred while retrieving the remaining rate limit from Redis. This could be due to Redis being unable to connect or an issue with the Redis configuration.

In this case, the API gateway may be unable to accurately track the rate limit for the user and may either restrict access prematurely or allow access beyond the rate limit. It is recommended to troubleshoot and resolve the issue with Redis to ensure proper rate limiting for the API.