luarx commented on issue #12592:
URL: https://github.com/apache/apisix/issues/12592#issuecomment-3259762494

   Thank you so much for your MRE, appreciate your time 🙏
   
   I replicated your local environment and ran your tests and I could observe 
the same results as you (1 RPS when using local policy and redis policy).
   
   **HOWEVER**, my understanding is that when you use this command:
   ```
   for i in {1..5}; do curl -s localhost:9080/test-jwt-auth-redis | jq -c; done
   ```
   the requests are sent ⚠️ **sequentially** , not in parallel ⚠️ , so it's not 
a reliable way to test the rate limiting behavior 🔴 .
   
   If you use this repository to send parallel requests:
   https://github.com/moisses89/NginxRateLimit
   you’ll notice that the limit-req plugin behaves differently when using 
`policy: local` compared to `policy: redis` 😢  .
   
   Please let me know if you encounter the same unexpected results as me when 
using the previously mentioned repository to send requests.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to