rate limiting issues
Hi Im using the cloudflare rate limiting beta, and it works fine when I make my requests through the browser. When I make requests through my local API client (bruno) it seems to have no effect and will never rate limit the user even if they exceed the threshold.
Don't really understand why.
1 Reply
When you make multiple requests with your browser, it will likely keep the connection open. In turn this will usually route your requests to the same Worker with the latest rate limit state.
If you use a client like curl, it will close the connection after each request. This will nearly always route your request to a different server that does not have the latest rate limit state.
In fact it may take quite a few requests to return to a Worker that served your client before so that it is able to observe the updated state and apply the block.
As long as the time window has not expired, you should eventually be rate limited using any client.