The speed limit of the Rest api using spring cloud gateway does not work with secure access and does not work with public access
I'm sorry for writing here. I didn't quite understand the scheme of work on limiting requests.
I found an example of working on the rate limit rest api, but when running tests:
GatewayRateLimiterTest-error 401 (authorization), which should not be
GatewaySecureRateLimiterTest - I only observe the success of requests, but I do not see errors when limiting requests.
In addition, I would like to clarify for myself (I did not find it in the documentation):
- how to change the error code to the address to which the response was sent that the resource is currently busy
- is it possible to collect statistics and see which IP generates more requests than our endpoint can handle
https://github.com/alex-sky-cloud/spring-gateway.git
rate limiter will never give a 401, only 429.
I don't understand this:
how to change the error code to the address to which the response was sent that the resource is currently busy
We don't currently collect those metrics.
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.