spring-cloud-gateway icon indicating copy to clipboard operation
spring-cloud-gateway copied to clipboard

The speed limit of the Rest api using spring cloud gateway does not work with secure access and does not work with public access

Open alex-sky-cloud opened this issue 5 years ago • 3 comments

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

alex-sky-cloud avatar Sep 06 '21 11:09 alex-sky-cloud

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.

spencergibb avatar Oct 07 '21 01:10 spencergibb

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.

spring-cloud-issues avatar Oct 14 '21 01:10 spring-cloud-issues

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.

spring-cloud-issues avatar Oct 22 '21 20:10 spring-cloud-issues